From 72e18867fc6bed7c17e00f26b59d2ddfbed084cd Mon Sep 17 00:00:00 2001 From: Ctrlcvs <1509167646@qq.com> Date: Fri, 14 Oct 2022 13:27:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E9=AB=98=E7=9D=A1=E7=9C=A0=E3=80=82?= =?UTF-8?q?=E3=80=82=E3=80=82=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/mys/mysTool.js | 1 + model/user.js | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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)