mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-23 03:20:52 +08:00
加高睡眠。。。。
This commit is contained in:
parent
8b39d7e3ec
commit
72e18867fc
@ -4,6 +4,7 @@ const salt = "PVeGWIZACpxXZ1ibMVJPi9inCY4Nd4y2";
|
||||
const salt2 = "t0qEgfub6cvueAPgR5m9aQWWVciEer7v";
|
||||
const saltWeb = "yUZ3s0Sna1IrSNfk29Vo6vRapdOyqyhB";
|
||||
const oldsalt = "z8DRIUjNDT7IT5IZXvrUAxyupA1peND9";
|
||||
const osSalt= ''; //599uqkwc0dlqu3h6epzjzfhgyyrd44ae rk4xg2hakoi26nljpr099fv9fck1ah10
|
||||
const osSaltWeb = ''; //os 浏览帖子需要用到的salt
|
||||
const web_api = `https://api-takumi.mihoyo.com`
|
||||
const os_web_api = `https://api-os-takumi.mihoyo.com`
|
||||
|
@ -95,7 +95,7 @@ export default class user {
|
||||
try {
|
||||
message += `**${forum.name}**\n`
|
||||
res = await this.getData("userGameInfo", forum)
|
||||
await utils.sleepAsync(300) //等几毫秒免得请求太频繁了
|
||||
await utils.sleepAsync(3000) //等几毫秒免得请求太频繁了
|
||||
if (res?.data?.list?.length === 0 || !res?.data?.list) {
|
||||
message += `签到: 未绑定${forum.name}信息\n`;
|
||||
continue;
|
||||
@ -106,6 +106,7 @@ export default class user {
|
||||
item.is_sign = true;
|
||||
item.upName = forum.name
|
||||
res = await this.getData("isSign", data)
|
||||
await utils.sleepAsync(500)
|
||||
item.total_sign_day = res?.data?.total_sign_day
|
||||
if (res?.data?.is_sign) {
|
||||
message += `${item.nickname}-${item.game_uid}:今日已签到~\n`;
|
||||
@ -146,6 +147,7 @@ export default class user {
|
||||
item.total_sign_day++;
|
||||
message +=
|
||||
`${item.nickname}-${item.game_uid}:${res.message=="OK"?"签到成功":res.message}\n`
|
||||
break;
|
||||
}
|
||||
}
|
||||
await utils.sleepAsync(2000)
|
||||
|
Loading…
Reference in New Issue
Block a user