KingRan 2022-02-26 18:23:08 +08:00
parent 754325a95c
commit 2af91ab22d
1 changed files with 3 additions and 2 deletions

View File

@ -296,6 +296,7 @@ async function doTenWater() {
for (; waterCount < $.farmTask.totalWaterTaskInit.totalWaterTaskLimit - $.farmTask.totalWaterTaskInit.totalWaterTaskTimes; waterCount++) { for (; waterCount < $.farmTask.totalWaterTaskInit.totalWaterTaskLimit - $.farmTask.totalWaterTaskInit.totalWaterTaskTimes; waterCount++) {
console.log(`${waterCount + 1}次浇水`); console.log(`${waterCount + 1}次浇水`);
await waterGoodForFarm(); await waterGoodForFarm();
await $.wait(2000);
console.log(`本次浇水结果: ${JSON.stringify($.waterResult)}`); console.log(`本次浇水结果: ${JSON.stringify($.waterResult)}`);
if ($.waterResult.code === '0') { if ($.waterResult.code === '0') {
console.log(`剩余水滴${$.waterResult.totalEnergy}g`); console.log(`剩余水滴${$.waterResult.totalEnergy}g`);
@ -946,8 +947,8 @@ async function gotStageAwardForFarm(type) {
} }
//浇水API //浇水API
async function waterGoodForFarm() { async function waterGoodForFarm() {
await $.wait(1000); await $.wait(3000);
console.log('等待了1秒'); console.log('等待了3秒');
const functionId = arguments.callee.name.toString(); const functionId = arguments.callee.name.toString();
$.waterResult = await request(functionId); $.waterResult = await request(functionId);