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 68ecc608
authored
Nov 01, 2022
by
softwhiskey8
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
для отладки
1 parent
b9627573
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
index.js
index.js
View file @
68ecc60
...
@@ -140,11 +140,15 @@ async function main() {
...
@@ -140,11 +140,15 @@ async function main() {
app
.
setExternal
(
"sendTelegram"
,
(
args
)
=>
{
app
.
setExternal
(
"sendTelegram"
,
(
args
)
=>
{
var
cmd
=
`cd /servers/constructor/htdocs/api/; php 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_json1
=
`{webinar:\"Как продавать на маркетплейсах в 2022\",date:\"11 июля\",promocode:\"SAMLOH\"}`
;
var
tmp_json
=
args
[
'json'
];
var
tmp_json
=
args
[
'json'
];
var
phone_number
=
args
[
'phone'
];
var
phone_number
=
args
[
'phone'
];
tmp_json
=
JSON
.
stringify
(
tmp_json
);
tmp_json
=
JSON
.
stringify
(
tmp_json
);
cmd
+=
`
${
events_owner
}
${
preset_template_id
}
${
phone_number
}
empty empty empty
${
tmp_json
}
`
;
cmd
+=
`
${
events_owner
}
${
preset_template_id
}
${
phone_number
}
empty empty empty
${
tmp_json
}
`
;
console
.
log
(
"tmpjson:"
);
console
.
log
(
tmp_json
);
console
.
log
(
"cmd:"
);
console
.
log
(
cmd
);
var
temp_cmd
=
`
${
events_owner
}
${
preset_template_id
}
${
process
.
argv
[
2
]}
empty empty empty
${
tmp_json1
}
`
;
console
.
log
(
"oldcmd:"
);
console
.
log
(
temp_cmd
);
exec
(
cmd
);
exec
(
cmd
);
});
});
//функция отправки сообщений в канал
//функция отправки сообщений в канал
...
...
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