mirror of https://github.com/KingRan/KR.git
Compare commits
2 Commits
70d91879f1
...
9c0e2d9e2b
Author | SHA1 | Date |
---|---|---|
KingRan | 9c0e2d9e2b | |
KingRan | a33bb4251a |
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue