MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / doTask

Method doTask

daily/ydyp.js:4117–4127  ·  view source on GitHub ↗
(e, t, r)

Source from the content-addressed store, hash-verified

4115 for (const r of o[e]) ot(t, e, r.id) || ("FINISH" !== r.state ? (this.log(`去完成任务: ${r.name}`), await this.doTask(r.id, e, t), await i(2e3)) : this.log(`已完成任务: ${r.name}`))
4116 }
4117 async doTask(e, t, r) {
4118 if (await this.sleep(), await this.api.clickTask(e, {
4119 throwHttpErrors: !1
4120 }), "cloud_app" === r && "day" === t) switch (e) {
4121 case 106:
4122 await this.uploadZeroFile();
4123 break;
4124 case 107:
4125 await this.createDefaultNote()
4126 }
4127 }
4128 async refreshNoteToken() {
4129 if (!this.authToken || "00" === this.authToken) return !1;
4130 const e = await this.api.refreshNoteToken();

Callers 1

processTaskListMethod · 0.95

Calls 4

sleepMethod · 0.95
uploadZeroFileMethod · 0.95
createDefaultNoteMethod · 0.95
clickTaskMethod · 0.80

Tested by

no test coverage detected