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

Method do_cal

qtx.js:218–237  ·  view source on GitHub ↗
(calId)

Source from the content-addressed store, hash-verified

216 }
217 }
218 async do_cal(calId) {//收取精力
219 try {
220 let options = {
221 url: `https://carbon.lcago.cn/interact/collect`,
222 headers: this.headers,
223 body: `{"token":"${this.ck}","platform":"android","model":"MI8Lite","appChannel":"qtx","version":"1.3.3_VersionCode_133","deviceCoding":"${this.deviceCoding}","language":"ZH","systemversion":"10","id":"${calId}"}`
224 }
225 //console.log(options);
226 let result = await httpRequest(options);
227 //console.log(result);
228 if (result.respcod == '01') {
229 DoubleLog(`账号[${this.index}] 收取精力成功`);
230 } else {
231 DoubleLog(`账号[${this.index}] 收取精力失效,原因未知!`);
232 console.log(result);
233 }
234 } catch (e) {
235 console.log(e);
236 }
237 }
238
239
240}

Callers 1

startFunction · 0.80

Calls 3

httpRequestFunction · 0.70
DoubleLogFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected