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

Method taskModel

wxapp/ctrip.js:441–452  ·  view source on GitHub ↗
(name, data = {})

Source from the content-addressed store, hash-verified

439 }
440
441 async taskModel(name, data = {}) {
442 const res = await this.h5Model("22598", name, data);
443 if (res.status !== 200) {
444 $.log(`账号[${this.index}] 任务接口 ${name} 异常[${res.status}]: ${res.text.slice(0, 500)}`);
445 return null;
446 }
447 if (!okBusiness(res.data)) {
448 $.log(`账号[${this.index}] 任务接口 ${name} 返回: ${res.text.slice(0, 800)}`);
449 return res.data;
450 }
451 return res.data;
452 }
453
454 async queryTaskList(channelCode, label) {
455 const data = await this.taskModel("userTaskList", { channelCode });

Callers 4

queryTaskListMethod · 0.95
receiveTaskAwardMethod · 0.95
doTaskMethod · 0.95
awardTaskMethod · 0.95

Calls 3

h5ModelMethod · 0.95
okBusinessFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected