MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / task_signin

Method task_signin

gqftbz.js:325–363  ·  view source on GitHub ↗

* 签到

()

Source from the content-addressed store, hash-verified

323 * 签到
324 */
325 async task_signin() {
326 try {
327 let YO = `${KO()}@DS@${KO()}`;
328 let key = YO.split("@DS@")[0];
329 let iv = YO.split("@DS@")[1];
330 /*console.log(YO);
331 log(key)
332 log(iv)*/
333 let bodydata = {};
334 let options = {
335 url: `https://gw.nevapp.gtmc.com.cn/main/api/marketing/lgn/task/sec/signin`,
336 headers: this.getHeadersPost_h5(),
337 body: JSON.stringify({
338 encryptKey: getRSAEncryptResult(YO),
339 encryptData: AES_CBC_Encrypt(bodydata, key, iv),
340 }),
341 },
342 result = await httpRequest(options);
343 //console.log(options);
344 //console.log(result);
345 if ("encryptData" in result) {
346 let rsaDeData = result.encryptKey;
347 let rsaDeResult = getRSADecryptResult(rsaDeData);
348 let aesDeData = result.encryptData;
349 let aesDekey = rsaDeResult.split("@DS@")[0];
350 let aesDeiv = rsaDeResult.split("@DS@")[1];
351 let deResult = AES_CBC_Decrypt(aesDeData, aesDekey, aesDeiv);
352 if ((deResult.header.code = "10000000")) {
353 DoubleLog(`账号[${this.index}] 签到: ${deResult.header.message}🎉`);
354 } else {
355 DoubleLog(`账号[${this.index}] 签到: ${deResult.header.message}`);
356 }
357 } else {
358 DoubleLog(`账号[${this.index}] 签到:失败 ❌ 了呢,原因未知!`);
359 }
360 } catch (e) {
361 console.log(e);
362 }
363 }
364 /**
365 * 阅读
366 * @param {*} artId

Callers 2

refresh_tokenMethod · 0.95
startFunction · 0.45

Calls 9

getHeadersPost_h5Method · 0.95
KOFunction · 0.85
getRSAEncryptResultFunction · 0.85
AES_CBC_EncryptFunction · 0.85
getRSADecryptResultFunction · 0.85
AES_CBC_DecryptFunction · 0.85
httpRequestFunction · 0.70
DoubleLogFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected