KingRan 2022-03-11 08:36:09 +08:00
parent a33bb4251a
commit 9c0e2d9e2b
1 changed files with 12 additions and 3 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) {