1
0
mirror of https://github.com/6dylan6/jdpro.git synced 2026-05-04 03:43:04 +08:00
This commit is contained in:
dylan
2023-11-06 11:15:18 +08:00
parent 1d92aac56a
commit 14950fb475
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -57,6 +57,7 @@ class UserClass extends BasicClass {
if(code == 1) { if(code == 1) {
for(let task of (result?.content?.taskInfoList||[]).filter(x => x.taskReachNum < x.taskNeedReachNum && x.triggerType==1)) { for(let task of (result?.content?.taskInfoList||[]).filter(x => x.taskReachNum < x.taskNeedReachNum && x.triggerType==1)) {
await this.reachTaskInfo(task); await this.reachTaskInfo(task);
await $.wait(1000);
break; break;
} }
} else { } else {
@@ -87,7 +88,8 @@ class UserClass extends BasicClass {
let {result} = await this.request(options) let {result} = await this.request(options)
let code = result?.code let code = result?.code
if(code == 1) { if(code == 1) {
this.log(`完成任务[${task.taskTitle}]成功`) this.log(`完成任务[${task.taskTitle}]成功`);
await $.wait(1000);
await this.queryTaskList(); await this.queryTaskList();
} else { } else {
let errCode = code || result?.error_response?.code let errCode = code || result?.error_response?.code
+2 -2
View File
File diff suppressed because one or more lines are too long