debug
This commit is contained in:
@@ -79,31 +79,31 @@ const JD_API_HOST = 'https://api.m.jd.com/api';
|
|||||||
} else {
|
} else {
|
||||||
$.log(`远程红包雨配置获取成功`)
|
$.log(`远程红包雨配置获取成功`)
|
||||||
}
|
}
|
||||||
for (let i = 0; i < cookiesArr.length; i++) {
|
for (let id of $.newAcids) {
|
||||||
if (cookiesArr[i]) {
|
// $.activityId = id;
|
||||||
cookie = cookiesArr[i];
|
// if (id) await receiveRedRain(id);
|
||||||
$.UserName = decodeURIComponent(cookie.match(/pt_pin=([^; ]+)(?=;?)/) && cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1])
|
for (let i = 0; i < cookiesArr.length; i++) {
|
||||||
$.index = i + 1;
|
if (cookiesArr[i]) {
|
||||||
$.isLogin = true;
|
cookie = cookiesArr[i];
|
||||||
$.nickName = '';
|
$.UserName = decodeURIComponent(cookie.match(/pt_pin=([^; ]+)(?=;?)/) && cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1])
|
||||||
message = '';
|
$.index = i + 1;
|
||||||
await TotalBean();
|
$.isLogin = true;
|
||||||
console.log(`\n******开始【京东账号${$.index}】${$.nickName || $.UserName}*********\n`);
|
$.nickName = '';
|
||||||
if (!$.isLogin) {
|
message = '';
|
||||||
$.msg($.name, `【提示】cookie已失效`, `京东账号${$.index} ${$.nickName || $.UserName}\n请重新登录获取\nhttps://bean.m.jd.com/`, {"open-url": "https://bean.m.jd.com/"});
|
await TotalBean();
|
||||||
|
console.log(`\n******开始【京东账号${$.index}】${$.nickName || $.UserName}*********\n`);
|
||||||
if ($.isNode()) {
|
if (!$.isLogin) {
|
||||||
await notify.sendNotify(`${$.name}cookie已失效 - ${$.UserName}`, `京东账号${$.index} ${$.UserName}\n请重新登录获取cookie`);
|
$.msg($.name, `【提示】cookie已失效`, `京东账号${$.index} ${$.nickName || $.UserName}\n请重新登录获取\nhttps://bean.m.jd.com/`, {"open-url": "https://bean.m.jd.com/"});
|
||||||
|
if ($.isNode()) {
|
||||||
|
await notify.sendNotify(`${$.name}cookie已失效 - ${$.UserName}`, `京东账号${$.index} ${$.UserName}\n请重新登录获取cookie`);
|
||||||
|
}
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
continue
|
let nowTs = new Date().getTime() + new Date().getTimezoneOffset() * 60 * 1000 + 8 * 60 * 60 * 1000
|
||||||
}
|
// console.log(nowTs, $.startTime, $.endTime)
|
||||||
let nowTs = new Date().getTime() + new Date().getTimezoneOffset() * 60 * 1000 + 8 * 60 * 60 * 1000
|
// await showMsg();
|
||||||
// console.log(nowTs, $.startTime, $.endTime)
|
|
||||||
for (let id of $.newAcids) {
|
|
||||||
// $.activityId = id;
|
|
||||||
if (id) await receiveRedRain(id);
|
if (id) await receiveRedRain(id);
|
||||||
}
|
}
|
||||||
// await showMsg();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (allMessage) {
|
if (allMessage) {
|
||||||
|
|||||||
Reference in New Issue
Block a user