()
| 165 | } |
| 166 | } |
| 167 | async do_question() {//答题 |
| 168 | try { |
| 169 | let options = { |
| 170 | url: `https://carbon.lcago.cn/community/answerQuestion`, |
| 171 | headers: this.headers, |
| 172 | body: `{"token":"${this.ck}","deviceCoding":"${this.deviceCoding}","questionId":"${this.questionId}","answer":"${this.answer}"}` |
| 173 | |
| 174 | } |
| 175 | //console.log(options); |
| 176 | let result = await httpRequest(options); |
| 177 | //console.log(result); |
| 178 | if (result.respcod == '01') { |
| 179 | DoubleLog(`账号[${this.index}] 答题成功:[${this.questionId}]`); |
| 180 | } else if (result.respcod == '02') { |
| 181 | DoubleLog(`题目已提交`); |
| 182 | |
| 183 | } else { |
| 184 | DoubleLog(`账号[${this.index}] 答题失效,原因未知!`); |
| 185 | console.log(result); |
| 186 | } |
| 187 | } catch (e) { |
| 188 | console.log(e); |
| 189 | } |
| 190 | } |
| 191 | async get_cal() {//获取精力 |
| 192 | try { |
| 193 | let options = { |
no test coverage detected