(id)
| 143 | } |
| 144 | } |
| 145 | async doTask(id) { |
| 146 | let options = { method: "POST", url: `https://mmembership.lenovo.com.cn/member-hp-task-center/v1/checkin/selectTaskPrize?taskId=${id}&channelId=1`, headers: this.headers } |
| 147 | let { data: result_ } = await axios.request(options) |
| 148 | if (result_.code == "0") { |
| 149 | let options = { method: "POST", url: `https://mmembership.lenovo.com.cn/member-hp-task-center/v1/Task/userFinishTask?taskId=${id}&channelId=1&state=1`, headers: this.headers } |
| 150 | let { data: result } = await axios.request(options) |
| 151 | |
| 152 | if (result.code == "0") { |
| 153 | $.log(`✅账号[${this.index}] 任务执行成功🎉`) |
| 154 | } else { |
| 155 | $.log(`❌账号[${this.index}] 任务执行失败`); |
| 156 | console.log(result_.message); |
| 157 | console.log(id) |
| 158 | } |
| 159 | } else { |
| 160 | console.log(result_.message) |
| 161 | } |
| 162 | |
| 163 | } |
| 164 | async ssoCheck() { |
| 165 | |
| 166 | let options = { |
no test coverage detected