From e55492b99debe0a4f4ed2d783df30ae92d14f94e Mon Sep 17 00:00:00 2001 From: lxk0301 <778732665@qq.com> Date: Wed, 11 Nov 2020 12:57:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=BA=AC=E5=B0=8F=E8=B6=85?= =?UTF-8?q?=E4=B9=8B=E5=89=8D=E9=9C=80=E4=BA=92=E7=9B=B8=E5=8A=A9=E5=8A=9B?= =?UTF-8?q?=E7=9A=84=E8=84=9A=E6=9C=AC=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd_moneyTree.js | 2 +- jd_pigPet.js | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/jd_moneyTree.js b/jd_moneyTree.js index d395f6d8..0cac2758 100644 --- a/jd_moneyTree.js +++ b/jd_moneyTree.js @@ -119,7 +119,7 @@ function user_info() { userInfo = res.resultData.data; // userInfo.realName = null; if (userInfo.realName) { - console.log(`助力码sharePin为::${userInfo.sharePin}`); + // console.log(`助力码sharePin为::${userInfo.sharePin}`); $.treeMsgTime = userInfo.sharePin; if ($.getdata($.treeMsgTime)) { if ($.getdata($.treeMsgTime) >= Notice) { diff --git a/jd_pigPet.js b/jd_pigPet.js index 70625509..f874aa20 100644 --- a/jd_pigPet.js +++ b/jd_pigPet.js @@ -35,8 +35,11 @@ if ($.isNode()) { console.log(`\n开始【京东账号${$.index}】${$.nickName || $.UserName}\n`); if (!$.isLogin) { $.msg($.name, `【提示】cookie已失效`, `京东账号${$.index} ${$.nickName || $.UserName}\n请重新登录获取\nhttps://bean.m.jd.com/`, {"open-url": "https://bean.m.jd.com/"}); - $.setdata('', `CookieJD${i ? i + 1 : "" }`);//cookie失效,故清空cookie。 - if ($.isNode()) await notify.sendNotify(`${$.name}cookie已失效 - ${$.UserName}`, `京东账号${$.index} ${$.UserName}\n请重新登录获取cookie`); + if ($.isNode()) { + await notify.sendNotify(`${$.name}cookie已失效 - ${$.UserName}`, `京东账号${$.index} ${$.UserName}\n请重新登录获取cookie`); + } else { + $.setdata('', `CookieJD${i ? i + 1 : "" }`);//cookie失效,故清空cookie。$.setdata('', `CookieJD${i ? i + 1 : "" }`);//cookie失效,故清空cookie。 + } continue } message = '';