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

Method task_like

gqftbz.js:414–457  ·  view source on GitHub ↗

* 点赞帖子

(artId)

Source from the content-addressed store, hash-verified

412 * 点赞帖子
413 */
414 async task_like(artId) {
415
416 try {
417 let YO = `${KO()}@DS@${KO()}`;
418 let key = YO.split("@DS@")[0];
419 let iv = YO.split("@DS@")[1];
420 /*console.log(YO);
421 log(key)
422 log(iv)*/
423 let bodydata = { subjectId: artId, subjectType: "POST" };
424 let options = {
425 url: `https://gw.nevapp.gtmc.com.cn/main/api/community/lgn/sec/user/like`,
426 headers: this.getHeadersPost_android(),
427 body: JSON.stringify({
428 encryptKey: getRSAEncryptResult(YO),
429 encryptData: AES_CBC_Encrypt(bodydata, key, iv),
430 }),
431 },
432 result = await httpRequest(options);
433 //console.log(options);
434 //console.log('点赞得结果',result);
435 if ("encryptData" in result) {
436 let rsaDeData = result.encryptKey;
437 let rsaDeResult = getRSADecryptResult_android(rsaDeData);
438 let aesDeData = result.encryptData;
439 let aesDekey = rsaDeResult.split("@DS@")[0];
440 let aesDeiv = rsaDeResult.split("@DS@")[1];
441 let deResult = AES_CBC_Decrypt(aesDeData, aesDekey, aesDeiv);
442 if ((deResult.header.code = "10000000")) {
443 DoubleLog(
444 `账号[${this.index}] 点赞文章: ${deResult.header.message}🎉`
445 );
446 } else {
447 DoubleLog(
448 `账号[${this.index}] 点赞文章: ${deResult.header.message}`
449 );
450 }
451 } else {
452 DoubleLog(`账号[${this.index}] 点赞文章:失败 ❌ 了呢,原因未知!`);
453 }
454 } catch (e) {
455 console.log(e);
456 }
457 }
458 /**
459 * 分享
460 */

Callers 1

art_listMethod · 0.95

Calls 9

KOFunction · 0.85
getRSAEncryptResultFunction · 0.85
AES_CBC_EncryptFunction · 0.85
AES_CBC_DecryptFunction · 0.85
httpRequestFunction · 0.70
DoubleLogFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected