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

Function queryAllTaskInfo

jd_small_home.js:591–615  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

589 })
590}
591function queryAllTaskInfo() {
592 return new Promise(resolve => {
593 $.get(taskUrl(`ssjj-task-info/queryAllTaskInfo/2`), (err, resp, data) => {
594 try {
595 if (err) {
596 console.log(`${JSON.stringify(err)}`)
597 console.log(`${$.name} API请求失败,请检查网路重试`)
598 } else {
599 if (safeGet(data)) {
600 data = JSON.parse(data);
601 if (data.head.code === 200) {
602 if (data.body) {
603 $.taskList = data.body;
604 }
605 }
606 }
607 }
608 } catch (e) {
609 $.logErr(e, resp)
610 } finally {
611 resolve();
612 }
613 })
614 })
615}
616//免费抽奖
617function drawRecord(id) {
618 return new Promise(resolve => {

Callers 1

doAllTaskFunction · 0.85

Calls 5

taskUrlFunction · 0.70
safeGetFunction · 0.70
getMethod · 0.45
logMethod · 0.45
logErrMethod · 0.45

Tested by

no test coverage detected