From 6d05f6d87be33f65bd42889fc6faa83a72e582f1 Mon Sep 17 00:00:00 2001 From: Faker Date: Mon, 14 Nov 2022 09:23:23 +0800 Subject: [PATCH] update --- jd_makemoneyshop.js | 1 + jd_subject.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/jd_makemoneyshop.js b/jd_makemoneyshop.js index 94f701b..631c1a0 100644 --- a/jd_makemoneyshop.js +++ b/jd_makemoneyshop.js @@ -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) { diff --git a/jd_subject.js b/jd_subject.js index fd5c28a..8b67669 100644 --- a/jd_subject.js +++ b/jd_subject.js @@ -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])