From 5b25f7a34ccf53ae02f26e5211b83c4193335592 Mon Sep 17 00:00:00 2001 From: lxk0301 <12345677@qq.com> Date: Tue, 1 Jun 2021 07:42:22 +0800 Subject: [PATCH] fix --- jd_zoo.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jd_zoo.js b/jd_zoo.js index d8f9fe57..345c35ad 100644 --- a/jd_zoo.js +++ b/jd_zoo.js @@ -90,7 +90,7 @@ if ($.isNode()) { let res = [], res2 = [], res3 = []; res3 = await getAuthorShareCode('https://raw.githubusercontent.com/gitupdate/updateTeam/master/shareCodes/jd_zoo.json'); if (!res3) await getAuthorShareCode('https://cdn.jsdelivr.net/gh/gitupdate/updateTeam@master/shareCodes/jd_zoo.json') - if (new Date().getUTCHours() + 8 >= 17) { + if (new Date().getHours()>= 17) { res = await getAuthorShareCode() || []; res2 = await getAuthorShareCode('http://cdn.trueorfalse.top/e528ffae31d5407aac83b8c37a4c86bc/') || []; } @@ -109,7 +109,7 @@ if ($.isNode()) { $.index = i + 1; //console.log($.inviteList); //pk助力 - if (new Date().getUTCHours() + 8 >= 9) { + if (new Date().getHours() >= 9) { console.log(`\n******开始内部京东账号【怪兽大作战pk】助力*********\n`); for (let i = 0; i < $.pkInviteList.length && pKHelpFlag && $.canHelp; i++) { console.log(`${$.UserName} 去助力PK码 ${$.pkInviteList[i]}`); @@ -235,7 +235,7 @@ async function zoo() { await takePostRequest('zoo_raise'); } //===================================图鉴里的店铺==================================================================== - if (new Date().getUTCHours() + 8 >= 17 && new Date().getUTCHours() + 8 <= 18 && !$.hotFlag) {//分享 + if (new Date().getHours()>= 17 && new Date().getHours()<= 18 && !$.hotFlag) {//分享 $.myMapList = []; await takePostRequest('zoo_myMap'); for (let i = 0; i < $.myMapList.length; i++) { @@ -247,7 +247,7 @@ async function zoo() { } } } - if (new Date().getUTCHours() + 8 >= 14 && new Date().getUTCHours() + 8 <= 17 && !$.hotFlag){//30个店铺,为了避免代码执行太久,下午2点到5点才做店铺任务 + if (new Date().getHours() >= 14 && new Date().getHours() <= 17 && !$.hotFlag){//30个店铺,为了避免代码执行太久,下午2点到5点才做店铺任务 console.log(`去做店铺任务`); $.shopInfoList = []; await takePostRequest('qryCompositeMaterials');