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

Method task_read

gqftbz.js:368–410  ·  view source on GitHub ↗

* 阅读 * @param {*} artId

(artId)

Source from the content-addressed store, hash-verified

366 * @param {*} artId
367 */
368 async task_read(artId) {
369 try {
370 let YO = `${KO()}@DS@${KO()}`;
371 let key = YO.split("@DS@")[0];
372 let iv = YO.split("@DS@")[1];
373 /*console.log(YO);
374 log(key)
375 log(iv)*/
376 let bodydata = { postId: artId };
377 let options = {
378 url: `https://gw.nevapp.gtmc.com.cn/main/api/community/sec/post/detail`,
379 headers: this.getHeadersPost_h5(),
380 body: JSON.stringify({
381 encryptKey: getRSAEncryptResult(YO),
382 encryptData: AES_CBC_Encrypt(bodydata, key, iv),
383 }),
384 },
385 result = await httpRequest(options);
386 //console.log(options);
387 //console.log(result);
388 if ("encryptData" in result) {
389 let rsaDeData = result.encryptKey;
390 let rsaDeResult = getRSADecryptResult(rsaDeData);
391 let aesDeData = result.encryptData;
392 let aesDekey = rsaDeResult.split("@DS@")[0];
393 let aesDeiv = rsaDeResult.split("@DS@")[1];
394 let deResult = AES_CBC_Decrypt(aesDeData, aesDekey, aesDeiv);
395 if ((deResult.header.code = "10000000")) {
396 DoubleLog(
397 `账号[${this.index}] 阅读文章: ${deResult.header.message}🎉`
398 );
399 } else {
400 DoubleLog(
401 `账号[${this.index}] 阅读文章: ${deResult.header.message}`
402 );
403 }
404 } else {
405 DoubleLog(`账号[${this.index}] 阅读文章:失败 ❌ 了呢,原因未知!`);
406 }
407 } catch (e) {
408 console.log(e);
409 }
410 }
411 /**
412 * 点赞帖子
413 */

Callers 1

art_listMethod · 0.95

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