Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Alexander
/
alex-hunter-sales-dev
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit dcc5c414
authored
Oct 13, 2022
by
softwhiskey8
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
добавил cd к вебхуку в exec
1 parent
7bb9bf59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
index.js
index.js
View file @
dcc5c41
...
@@ -132,7 +132,7 @@ async function main() {
...
@@ -132,7 +132,7 @@ async function main() {
app
.
setExternal
(
"sendTelegram"
,
(
args
)
=>
{
app
.
setExternal
(
"sendTelegram"
,
(
args
)
=>
{
var
exec
=
require
[
'child_process'
].
exec
;
var
exec
=
require
[
'child_process'
].
exec
;
var
cmd
=
`
php ~htdocs/api/
telegram-send.php `
;
var
cmd
=
`
cd /servers/constructor/htdocs/api/; php
telegram-send.php `
;
var
tmp_json
=
`{webinar:\"Как продавать на маркетплейсах в 2022\",date:\"11 июля\",promocode:\"SAMLOH\"}`
;
var
tmp_json
=
`{webinar:\"Как продавать на маркетплейсах в 2022\",date:\"11 июля\",promocode:\"SAMLOH\"}`
;
tmp_json
=
JSON
.
strongify
(
tmp_json
);
tmp_json
=
JSON
.
strongify
(
tmp_json
);
cmd
+=
`
${
events_owner
}
${
template_id
}
${
abonent_phone
}
empty empty empty
${
tmp_json
}
`
;
cmd
+=
`
${
events_owner
}
${
template_id
}
${
abonent_phone
}
empty empty empty
${
tmp_json
}
`
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment