This commit is contained in:
Faker 2022-11-14 09:23:23 +08:00 committed by ooo
parent 51173e4550
commit 625a9ffa78
2 changed files with 2 additions and 1 deletions

View File

@ -108,6 +108,7 @@ let helpinfo = {};
$.UserName = decodeURIComponent(cookie.match(/pt_pin=([^; ]+)(?=;?)/) && cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1])
$.index = i + 1;
$.canUseCoinAmount = 0;
if (Object.keys(helpinfo).length == 0) helpinfo[$.UserName] = {};
try {
UA = helpinfo[$.UserName].ua;
} catch (e) {

View File

@ -24,7 +24,7 @@ if ($.isNode()) {
$.msg($.name, '【提示】请先获取京东账号一cookie\n直接使用NobyDa的京东签到获取', 'https://bean.m.jd.com/bean/signIndex.action', { "open-url": "https://bean.m.jd.com/bean/signIndex.action" });
return;
}
for (let i = 0; i < cookiesArr.length; i++) {
for (let i = 0; i < 20; i++) {
if (cookiesArr[i]) {
cookie = cookiesArr[i];
$.UserName = decodeURIComponent(cookie.match(/pt_pin=([^; ]+)(?=;?)/) && cookie.match(/pt_pin=([^; ]+)(?=;?)/)[1])