2
0
mirror of https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git synced 2024-12-23 03:20:52 +08:00

加高睡眠。。。。

This commit is contained in:
Ctrlcvs 2022-10-14 13:27:16 +08:00
parent 8b39d7e3ec
commit 72e18867fc
2 changed files with 4 additions and 1 deletions

View File

@ -4,6 +4,7 @@ const salt = "PVeGWIZACpxXZ1ibMVJPi9inCY4Nd4y2";
const salt2 = "t0qEgfub6cvueAPgR5m9aQWWVciEer7v"; const salt2 = "t0qEgfub6cvueAPgR5m9aQWWVciEer7v";
const saltWeb = "yUZ3s0Sna1IrSNfk29Vo6vRapdOyqyhB"; const saltWeb = "yUZ3s0Sna1IrSNfk29Vo6vRapdOyqyhB";
const oldsalt = "z8DRIUjNDT7IT5IZXvrUAxyupA1peND9"; const oldsalt = "z8DRIUjNDT7IT5IZXvrUAxyupA1peND9";
const osSalt= ''; //599uqkwc0dlqu3h6epzjzfhgyyrd44ae rk4xg2hakoi26nljpr099fv9fck1ah10
const osSaltWeb = ''; //os 浏览帖子需要用到的salt const osSaltWeb = ''; //os 浏览帖子需要用到的salt
const web_api = `https://api-takumi.mihoyo.com` const web_api = `https://api-takumi.mihoyo.com`
const os_web_api = `https://api-os-takumi.mihoyo.com` const os_web_api = `https://api-os-takumi.mihoyo.com`

View File

@ -95,7 +95,7 @@ export default class user {
try { try {
message += `**${forum.name}**\n` message += `**${forum.name}**\n`
res = await this.getData("userGameInfo", forum) res = await this.getData("userGameInfo", forum)
await utils.sleepAsync(300) //等几毫秒免得请求太频繁了 await utils.sleepAsync(3000) //等几毫秒免得请求太频繁了
if (res?.data?.list?.length === 0 || !res?.data?.list) { if (res?.data?.list?.length === 0 || !res?.data?.list) {
message += `签到: 未绑定${forum.name}信息\n`; message += `签到: 未绑定${forum.name}信息\n`;
continue; continue;
@ -106,6 +106,7 @@ export default class user {
item.is_sign = true; item.is_sign = true;
item.upName = forum.name item.upName = forum.name
res = await this.getData("isSign", data) res = await this.getData("isSign", data)
await utils.sleepAsync(500)
item.total_sign_day = res?.data?.total_sign_day item.total_sign_day = res?.data?.total_sign_day
if (res?.data?.is_sign) { if (res?.data?.is_sign) {
message += `${item.nickname}-${item.game_uid}:今日已签到~\n`; message += `${item.nickname}-${item.game_uid}:今日已签到~\n`;
@ -146,6 +147,7 @@ export default class user {
item.total_sign_day++; item.total_sign_day++;
message += message +=
`${item.nickname}-${item.game_uid}${res.message=="OK"?"签到成功":res.message}\n` `${item.nickname}-${item.game_uid}${res.message=="OK"?"签到成功":res.message}\n`
break;
} }
} }
await utils.sleepAsync(2000) await utils.sleepAsync(2000)