()
| 140 | } |
| 141 | } |
| 142 | async get_question() {//获取答题 |
| 143 | try { |
| 144 | let options = { |
| 145 | url: `https://carbon.lcago.cn/community/requestQuestion`, |
| 146 | headers: this.headers, |
| 147 | body: `{"token":"${this.ck}","deviceCoding":"${this.deviceCoding}","taskId":"EHD8472JSDS","channel":"qtx"}` |
| 148 | |
| 149 | } |
| 150 | //console.log(options); |
| 151 | let result = await httpRequest(options); |
| 152 | //console.log(result); |
| 153 | if (result.respcod == '01') { |
| 154 | DoubleLog(`账号[${this.index}] 获取问题成功: [${result.data.dataList[0].id}] [${result.data.dataList[0].questionTitle}] [${result.data.dataList[0].questionOptions}]`); |
| 155 | DoubleLog(`获取答案:[${result.data.dataList[0].answer}]`); |
| 156 | |
| 157 | this.questionId = result.data.dataList[0].id; |
| 158 | this.answer = result.data.dataList[0].answer |
| 159 | } else { |
| 160 | DoubleLog(`账号[${this.index}] 获取问题失效,原因未知!`); |
| 161 | console.log(result); |
| 162 | } |
| 163 | } catch (e) { |
| 164 | console.log(e); |
| 165 | } |
| 166 | } |
| 167 | async do_question() {//答题 |
| 168 | try { |
| 169 | let options = { |
no test coverage detected