MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / task_list

Method task_list

fenxiang.js:94–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92 }
93 }
94 async task_list() {
95 let result = await this.taskRequest("post", 'https://fenxiang-lottery-api.fenxianglife.com/fenxiang-lottery/home/data/V2', JSON.stringify({
96 "plateform": "android",
97 "version": "5.4.3"
98 }));
99 //console.log(result);
100 if (result.code == 200) {
101 for (let i of result.data.taskModule.taskResult) {
102 if (i.taskStatus == 0) {
103 this.taskList.push(i)
104
105 }
106 }
107
108 } else {
109 $.log(`❌账号[${this.index}] 获取任务失败`);
110 //console.log(result);
111 }
112 }
113 async taskRequest(method, url, body = "") {
114 let re = function (e) {
115 function convertObjectToQueryString(obj) {

Callers 1

mainMethod · 0.95

Calls 2

taskRequestMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected