From dc3c233186b53216f78bb99e515b365bc84545c3 Mon Sep 17 00:00:00 2001 From: yml2213 Date: Thu, 26 May 2022 14:50:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=A2=86=E5=8F=96=E5=88=86?= =?UTF-8?q?=E7=BA=A2,=E6=9B=B4=E6=94=B9=E8=8D=A3=E8=AA=89=E5=80=BC?= =?UTF-8?q?=E6=AC=A1=E6=95=B0=20=20=E6=AF=8F=E6=AC=A1=E6=89=A7=E8=A1=8C10?= =?UTF-8?q?=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tlm/tlm.js | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/tlm/tlm.js b/tlm/tlm.js index ba9d550..0ac2f78 100644 --- a/tlm/tlm.js +++ b/tlm/tlm.js @@ -18,9 +18,12 @@ * * 感谢所有测试人员 * ========= 青龙--配置文件 ========= - * 变量格式: export tlm_data=' 手机号&密码 @ 手机号&密码 ' 多个账号用 @分割 + * 变量格式: export tlm_data=' 手机号&密码 @ 手机号&密码 ' 多个账号用 换行 或 @分割 * - * 神秘代码: aHR0cHM6Ly90Lm1lL3ltbF90Zw== + * tg频道: https://t.me/yml2213_tg + * tg群组: https://t.me/yml_tg + * qq频道: https://qun.qq.com/qqweb/qunpro/share?_wv=3&_wwv=128&appChannel=share&inviteCode=1W4InjV&appChannel=share&businessType=9&from=181074&biz=ka&shareSource=5 + * */ const $ = new Env("推了吗"); const notify = $.isNode() ? require("./sendNotify") : ""; @@ -548,29 +551,31 @@ async function honor_Dividends() { // ============================================变量检查============================================ \\ async function getCks(ck, str) { - - - return new Promise((resolve, reject) => { - + return new Promise((resolve) => { let ckArr = [] if (ck) { - if (ck.indexOf("@") != -1) { + if (ck.indexOf("@") !== -1) { ck.split("@").forEach((item) => { ckArr.push(item); }); + } else if (ck.indexOf("\n") !== -1) { + + ck.split("\n").forEach((item) => { + ckArr.push(item); + }); } else { ckArr.push(ck); } resolve(ckArr) } else { - console.log(`\n 【${$.name}】:未填写变量 ${str}`) + console.log(` :未填写变量 ${str}`) } - } ) } + // ============================================发送消息============================================ \\ async function SendMsg(message) {