* 签到
()
| 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 |
no test coverage detected