()
| 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) { |
no test coverage detected