Compare commits

...

2 Commits

Author SHA1 Message Date
KingRan 9c0e2d9e2b 更新 2022-03-11 08:36:09 +08:00
KingRan a33bb4251a 更新 2022-03-11 08:24:03 +08:00
3 changed files with 14 additions and 5 deletions

View File

@ -118,14 +118,22 @@ async function jdPlantBean() {
subTitle = `【京东昵称】${$.plantBeanIndexResult.data.plantUserInfo.plantNickName}`;
message += `【上期时间】${roundList[num - 1].dateDesc.replace('上期 ', '')}\n`;
message += `【上期成长值】${roundList[num - 1].growth}\n`;
await receiveNutrients();//定时领取营养液
await $.wait(1000);
await receiveNutrients();//定时领取营养液
await $.wait(2000);
await doTask();//做日常任务
await $.wait(5000);
// await doEgg();
await stealFriendWater();
await $.wait(2000);
await doCultureBean();
await $.wait(1000);
await doGetReward();
await $.wait(1000);
await showTaskProcess();
await $.wait(1000);
await plantShareSupportList();
await $.wait(1000);
} else {
console.log(`种豆得豆-初始失败: ${JSON.stringify($.plantBeanIndexResult)}`);
}
@ -255,6 +263,7 @@ async function doTask() {
console.log(`\n开始做 ${item.taskName}任务`);
// $.receiveNutrientsTaskRes = await receiveNutrientsTask(item.taskType);
await receiveNutrientsTask(item.taskType);
await $.wait(3000);
console.log(`${item.taskName}任务结果:${JSON.stringify($.receiveNutrientsTaskRes)}\n`);
}
if (item.taskType === 3) {
@ -554,7 +563,7 @@ function requestGet(function_id, body = {}) {
body["monitor_source"] = "plant_app_plant_index";
body["monitor_refer"] = "";
return new Promise(async resolve => {
await $.wait(2000);
await $.wait(5000);
const option = {
url: `${JD_API_HOST}?functionId=${function_id}&body=${escape(JSON.stringify(body))}&appid=ld`,
headers: {
@ -632,7 +641,7 @@ function TotalBean() {
}
function request(function_id, body = {}) {
return new Promise(async resolve => {
await $.wait(2000);
await $.wait(5000);
$.post(taskUrl(function_id, body), (err, resp, data) => {
try {
if (err) {

View File

@ -76,8 +76,8 @@ let lnruns = 0;
lnrun++;
await doHelp();
if (lnrun == 3) {
console.log(`\n【访问接口次数达到3次休息分钟.....】\n`);
await $.wait(30 * 1000);
console.log(`\n【访问接口次数达到3次休息分钟.....】\n`);
await $.wait(60 * 1000);
lnrun = 0;
}
await $.wait(3 * 1000);