diff --git a/model/mys/mysTool.js b/model/mys/mysTool.js index 548e622..f003cf5 100644 --- a/model/mys/mysTool.js +++ b/model/mys/mysTool.js @@ -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` diff --git a/model/user.js b/model/user.js index 4acea6c..fedcd55 100644 --- a/model/user.js +++ b/model/user.js @@ -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)