MCPcopy Create free account
hub / github.com/Semporia/Scripts / doTasks

Function doTasks

jd_crazy_joy.js:153–167  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151 await showMsg();
152}
153async function doTasks() {
154 await getTaskInfo()
155 for (let j = 0; j < $.taskList.length; ++j) {
156 let task = $.taskList[j];
157 if (task['taskTypeId'] === 102) {
158 message += `${task.taskTitle}:${task['doneTimes']}/${task.ext.count}\n`;
159 }
160 if (task.status === 0 && task.taskTypeId === 103)
161 for (let i = task.doneTimes; i < task.ext.count; ++i) {
162 await doTask(task.taskId)
163 }
164 if (task.status === 2)
165 await awardTask(task.taskId)
166 }
167}
168function doApplyJdBean(bean = 1000) {
169 // 兑换京豆
170 let body = {"paramData":{"bean":bean}}

Callers 2

jd_crazy_joy.jsFile · 0.70
jdCrazyJoyFunction · 0.70

Calls 3

getTaskInfoFunction · 0.70
doTaskFunction · 0.70
awardTaskFunction · 0.70

Tested by

no test coverage detected