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

Method awardTask

wxapp/ctrip.js:499–509  ·  view source on GitHub ↗
(channelCode, task, label)

Source from the content-addressed store, hash-verified

497 }
498
499 async awardTask(channelCode, task, label) {
500 const id = taskId(task);
501 if (!id) return;
502 const data = await this.taskModel("awardTask", { channelCode, taskId: id });
503 if (okBusiness(data)) {
504 const award = data.awardName || data.rewardName || data.message || "成功";
505 $.log(`账号[${this.index}] ${label} 领奖成功: ${taskTitle(task)},${award}`);
506 } else if (data) {
507 $.log(`账号[${this.index}] ${label} 领奖返回: ${taskTitle(task)},${JSON.stringify(data).slice(0, 500)}`);
508 }
509 }
510
511 async runTaskChannel({ channelCode, label }) {
512 let tasks = await this.queryTaskList(channelCode, label);

Callers 1

runTaskChannelMethod · 0.95

Calls 5

taskModelMethod · 0.95
taskIdFunction · 0.85
okBusinessFunction · 0.85
taskTitleFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected