Commit 68ecc608 by softwhiskey8

для отладки

1 parent b9627573
Showing with 5 additions and 1 deletions
...@@ -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);
}); });
//функция отправки сообщений в канал //функция отправки сообщений в канал
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!