MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / do_question

Method do_question

qtx.js:167–190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 = {

Callers 1

startFunction · 0.80

Calls 3

httpRequestFunction · 0.70
DoubleLogFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected