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

Method get_cal

qtx.js:191–217  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

189 }
190 }
191 async get_cal() {//获取精力
192 try {
193 let options = {
194 url: `https://carbon.lcago.cn/interact/data`,
195 headers: this.headers,
196 body: `{"token":"${this.ck}","platform":"android","model":"MI8Lite","appChannel":"qtx","version":"1.3.3_VersionCode_133","deviceCoding":"${this.deviceCoding}","language":"ZH","systemversion":"10"}`
197
198 }
199 //console.log(options);
200 let result = await httpRequest(options);
201 //console.log(result);
202 if (result.respcod == '01') {
203 if (result.data.dataList.length != 0) {
204 for (let i = 0; i < result.data.dataList.length; i++) {
205 this.calIdArr[i] = result.data.dataList[i].id;
206 //console.log(`未收取精力ID为${this.calIdArr[i]}`);
207 }
208 }
209 else { console.log("无未收取的精力") }
210 } else {
211 DoubleLog(`账号[${this.index}] 获取精力失效,原因未知!`);
212 console.log(result);
213 }
214 } catch (e) {
215 console.log(e);
216 }
217 }
218 async do_cal(calId) {//收取精力
219 try {
220 let options = {

Callers 1

startFunction · 0.80

Calls 3

httpRequestFunction · 0.70
DoubleLogFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected