mirror of
https://github.com/shufflewzc/faker2.git
synced 2025-04-23 10:58:44 +08:00
update
This commit is contained in:
parent
1958017002
commit
972471bfd8
@ -2,7 +2,8 @@
|
|||||||
京东快递
|
京东快递
|
||||||
@Leaf
|
@Leaf
|
||||||
|
|
||||||
13 22 * * * jd_jdkd1.js
|
30 16 * * * jd_jdkd1.js
|
||||||
|
|
||||||
*/
|
*/
|
||||||
const $ = new Env('京东快递');
|
const $ = new Env('京东快递');
|
||||||
const got = require('got');
|
const got = require('got');
|
||||||
@ -58,6 +59,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 {
|
||||||
@ -88,7 +90,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
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user