enable pk

This commit is contained in:
anonymous
2021-01-26 18:17:57 +08:00
parent 52fbd3d48e
commit 55caf28f94

View File

@@ -100,13 +100,14 @@ async function jdNian() {
$.hasGroup = false
await pkTaskDetail()
if ($.hasGroup) await pkInfo()
await helpFriendsPK()
//await helpFriendsPK()
}
if (12 <= hour && hour < 14) {
// 北京时间20点-22点
$.hasGroup = false
await pkTaskStealDetail()
if ($.hasGroup) await pkInfo()
await helpFriendsPK()
}
await $.wait(2000)
await killCouponList()
@@ -118,7 +119,7 @@ async function jdNian() {
await $.wait(1000)
await doTask()
await $.wait(2000)
await helpFriends()
//await helpFriends()
await $.wait(2000)
await getHomeData(true)
await showMsg()
@@ -1135,7 +1136,9 @@ function shareCodesFormatPk() {
const tempIndex = $.index > pkInviteCodes.length ? (pkInviteCodes.length - 1) : ($.index - 1);
$.newShareCodesPk = pkInviteCodes[tempIndex].split('@');
}
const readShareCodeRes = null //await readShareCodePk();
let readShareCodeRes = null
if (new Date().getUTCHours() >= 12)
readShareCodeRes = await readShareCodePk();
if (readShareCodeRes && readShareCodeRes.code === 200) {
$.newShareCodesPk = [...new Set([...$.newShareCodesPk, ...(readShareCodeRes.data || [])])];
}