This commit is contained in:
lxk0301
2021-02-20 10:41:17 +08:00
parent 3d6bf9472b
commit b04ebe4265
77 changed files with 77 additions and 539 deletions

View File

@ -28,13 +28,7 @@ if ($.isNode()) {
})
if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => {};
} else {
let cookiesData = $.getdata('CookiesJD') || "[]";
cookiesData = jsonParse(cookiesData);
cookiesArr = cookiesData.map(item => item.cookie);
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item);
}
const jdNotify = $.getdata('jdUnbindCardNotify');//是否关闭通知false打开通知推送true关闭通知推送
let cardPageSize = 200;// 运行一次取消多少个会员卡。数字0表示不注销任何会员卡