This commit is contained in:
lxk0301
2021-06-01 07:42:22 +08:00
parent a5a778f8fa
commit 5b25f7a34c

View File

@@ -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');