From 62b4118e38547619a884bbb98010631591b83f4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=B4=E6=B8=8A?= <74068830+LinYuanovo@users.noreply.github.com> Date: Fri, 30 Sep 2022 21:26:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=B1=B3=E6=AD=A5=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xmbs.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xmbs.js b/xmbs.js index c9a1b10..ae0ad0f 100644 --- a/xmbs.js +++ b/xmbs.js @@ -4,6 +4,7 @@ * 日期:6-6 * 变量格式:export xmbs='小米运动&密码&步数@xxx ' 多个账号用@分割 * 定时一天一次 + * 更新成换行登录 */ const $ = new Env('小米步数'); @@ -178,8 +179,8 @@ // ============================================变量检查============================================ \\ async function Envs() { if (xmbs) { - if (xmbs.indexOf("@") != -1) { - xmbs.split("@").forEach((item) => { + if (xmbs.indexOf("\n") != -1) { + xmbs.split("\n").forEach((item) => { xmbsArr.push(item); }); } else {