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

Function apTaskDetail

jd_joypark_open.js:183–202  ·  view source on GitHub ↗
(taskId,taskType)

Source from the content-addressed store, hash-verified

181}
182
183async function apTaskDetail(taskId,taskType) {
184 await $.wait(1000)
185 return new Promise(resolve => {
186 $.post(taskPostClientActionUrl(`functionId=apTaskDetail&body={"taskType":"${taskType}","taskId":${taskId},"channel":4,"linkId":"LsQNxL7iWDlXUs6cFl-AAg"}&appid=activities_platform`,`apTaskDetail`), async (err, resp, data) => {
187 try {
188 if (err) {
189 console.log(`${JSON.stringify(err)}`)
190 console.log(`${$.name} API请求失败,请检查网路重试`)
191 } else {
192 data = JSON.parse(data);
193 $.taskDetailList = data.data.taskItemList
194 }
195 } catch (e) {
196 $.logErr(e, resp)
197 } finally {
198 resolve(data.data.taskItemList);
199 }
200 })
201 })
202}
203
204async function apTaskDrawAward(taskId,taskType) {
205 await $.wait(1000)

Callers

nothing calls this directly

Calls 5

taskPostClientActionUrlFunction · 0.70
waitMethod · 0.45
postMethod · 0.45
logMethod · 0.45
logErrMethod · 0.45

Tested by

no test coverage detected