fix
This commit is contained in:
36
jd_818.js
36
jd_818.js
@@ -120,21 +120,25 @@ async function main() {
|
|||||||
await showMsg()
|
await showMsg()
|
||||||
}
|
}
|
||||||
async function JD818() {
|
async function JD818() {
|
||||||
await getHelp();
|
try {
|
||||||
await listGoods();//逛新品
|
await getHelp();
|
||||||
await shopInfo();//逛店铺
|
await listGoods();//逛新品
|
||||||
await listMeeting();//逛会场
|
await shopInfo();//逛店铺
|
||||||
await $.wait(10000);
|
await listMeeting();//逛会场
|
||||||
//再次运行一次,避免出现遗漏的问题
|
await $.wait(10000);
|
||||||
await listGoods();//逛新品
|
//再次运行一次,避免出现遗漏的问题
|
||||||
await shopInfo();//逛店铺
|
await listGoods();//逛新品
|
||||||
await listMeeting();//逛会场
|
await shopInfo();//逛店铺
|
||||||
await doHelp();
|
await listMeeting();//逛会场
|
||||||
await myRank();//领取往期排名奖励
|
await doHelp();
|
||||||
await getListJbean();
|
await myRank();//领取往期排名奖励
|
||||||
await getListRank();
|
await getListJbean();
|
||||||
await getListIntegral();
|
await getListRank();
|
||||||
await showMsg()
|
await getListIntegral();
|
||||||
|
await showMsg()
|
||||||
|
} catch (e) {
|
||||||
|
$.logErr(e)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
function listMeeting() {
|
function listMeeting() {
|
||||||
const options = {
|
const options = {
|
||||||
@@ -590,7 +594,7 @@ async function doHelp() {
|
|||||||
//当天大于9:00才从API里面取收集的助力码
|
//当天大于9:00才从API里面取收集的助力码
|
||||||
//if (nowTime > new Date(nowTime).setHours(9, 0, 0, 0)) body = await printAPI();//访问收集的互助码
|
//if (nowTime > new Date(nowTime).setHours(9, 0, 0, 0)) body = await printAPI();//访问收集的互助码
|
||||||
body = await printAPI();//访问收集的互助码
|
body = await printAPI();//访问收集的互助码
|
||||||
if (body) {
|
if (body && body['data']) {
|
||||||
// console.log(`printAPI返回助力码数量:${body.replace(/"/g, '').split(',').length}`)
|
// console.log(`printAPI返回助力码数量:${body.replace(/"/g, '').split(',').length}`)
|
||||||
// tempCode = tempCode.concat(body.replace(/"/g, '').split(','))
|
// tempCode = tempCode.concat(body.replace(/"/g, '').split(','))
|
||||||
tempCode = [...tempCode, ...body['data']]
|
tempCode = [...tempCode, ...body['data']]
|
||||||
|
Reference in New Issue
Block a user