点击厂长得钞票功能,区分一下手机端和云端

This commit is contained in:
lxk0301
2020-12-03 16:32:57 +08:00
parent bb9945daf7
commit 1771d956c1
3 changed files with 15 additions and 11 deletions

View File

@@ -6,8 +6,8 @@
##############短期活动############## ##############短期活动##############
# 京喜故事 # 京喜故事(2020.12.12活动过期)
10 7 * * * node /scripts/jd_jxstory.js >> /scripts/logs/jd_jxstory.log 2>&1 10 * * * * node /scripts/jd_jxstory.js >> /scripts/logs/jd_jxstory.log 2>&1
##############长期活动############## ##############长期活动##############

View File

@@ -6,8 +6,8 @@
##############短期活动############## ##############短期活动##############
# 京喜故事 # 京喜故事(2020.12.12活动过期)
10 7 * * * node /scripts/jd_jxstory.js |ts >> /scripts/logs/jd_jxstory.log 2>&1 10 * * * * node /scripts/jd_jxstory.js |ts >> /scripts/logs/jd_jxstory.log 2>&1
##############长期活动############## ##############长期活动##############

View File

@@ -31,7 +31,7 @@ const notify = $.isNode() ? require('./sendNotify') : '';
let jdNotify = true;//是否关闭通知false打开通知推送true关闭通知推送 let jdNotify = true;//是否关闭通知false打开通知推送true关闭通知推送
const randomCount = 3; const randomCount = 3;
let cookiesArr = [], cookie = '', message = ''; let cookiesArr = [], cookie = '', message = '';
const inviteCodes = ['qSDHMwUOz7onHcMyaju4KmdSXWf0dlv7LVnTt1Wzemo=']; const inviteCodes = ['qSDHMwUOz7onHcMyaju4KmdSXWf0dlv7LVnTt1Wzemo=@iuGNoGYvk9YdEImUAz25Wyzm7oeggrm0JSIYgZdHJGI=', 'iuGNoGYvk9YdEImUAz25Wyzm7oeggrm0JSIYgZdHJGI='];
const jdCookieNode = $.isNode() ? require('./jdCookie.js') : ''; const jdCookieNode = $.isNode() ? require('./jdCookie.js') : '';
if ($.isNode()) { if ($.isNode()) {
Object.keys(jdCookieNode).forEach((item) => { Object.keys(jdCookieNode).forEach((item) => {
@@ -90,8 +90,12 @@ async function jdJxStory() {
await upgrade(); await upgrade();
} }
await cardList() await cardList()
$.click = true; if ($.isNode()) {
while($.click){ $.click = true;
while($.click){
await increase()
}
} else {
await increase() await increase()
} }
} }
@@ -516,10 +520,10 @@ function shareCodesFormat() {
const tempIndex = $.index > inviteCodes.length ? (inviteCodes.length - 1) : ($.index - 1); const tempIndex = $.index > inviteCodes.length ? (inviteCodes.length - 1) : ($.index - 1);
$.newShareCodes = inviteCodes[tempIndex].split('@'); $.newShareCodes = inviteCodes[tempIndex].split('@');
} }
const readShareCodeRes = await readShareCode(); // const readShareCodeRes = await readShareCode();
if (readShareCodeRes && readShareCodeRes.code === 200) { // if (readShareCodeRes && readShareCodeRes.code === 200) {
$.newShareCodes = [...new Set([...$.newShareCodes, ...(readShareCodeRes.data || [])])]; // $.newShareCodes = [...new Set([...$.newShareCodes, ...(readShareCodeRes.data || [])])];
} // }
console.log(`${$.index}个京东账号将要助力的好友${JSON.stringify($.newShareCodes)}`) console.log(`${$.index}个京东账号将要助力的好友${JSON.stringify($.newShareCodes)}`)
resolve(); resolve();
}) })