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

Function getTaskList

jd_jump.js:328–346  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

326
327//获取任务列表
328async function getTaskList() {
329 const myRequest = getGetRequest('getTools', `activityId=${$.jumpId}&reqSource=h5`);
330 return new Promise(async resolve => {
331 $.get(myRequest, (err, resp, data) => {
332 try {
333 if (data) {
334 data = JSON.parse(data);
335 if (data.success === true) {
336 $.taskList = data.datas;
337 }
338 }
339 } catch (e) {
340 $.logErr(e, resp)
341 } finally {
342 resolve();
343 }
344 })
345 })
346}
347
348async function receive() {
349 const myRequest = getGetRequest('receive', `activityId=${$.jumpId}`);

Callers 1

jumpFunction · 0.70

Calls 3

getGetRequestFunction · 0.70
getMethod · 0.45
logErrMethod · 0.45

Tested by

no test coverage detected