From 8efe89bb3fd596330615ac86e4e161beda343f55 Mon Sep 17 00:00:00 2001 From: forchannot <100580891+forchannot@users.noreply.github.com> Date: Wed, 18 Oct 2023 01:14:24 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E6=98=9F=E9=93=81?= =?UTF-8?q?=E7=AD=BE=E5=88=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handle/sr_sign_handle.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/handle/sr_sign_handle.py b/handle/sr_sign_handle.py index 3e59683..da584ca 100644 --- a/handle/sr_sign_handle.py +++ b/handle/sr_sign_handle.py @@ -11,11 +11,13 @@ from LittlePaimon.utils.requests import aiorequests from nonebot import get_bot +from ..api.api import mihoyobbs_version from ..captcha.captcha import _HEADER, get_ds2, get_validate from ..config.config import config from ..draw.sign_draw import SignResult, draw_result from ..utils.logger import Logger + # 铁道签到列表 OLD_URL = "https://api-takumi.mihoyo.com" STAR_RAIL_SIGN_LIST_URL = f"{OLD_URL}/event/luna/home" @@ -30,7 +32,7 @@ async def sr_mihoyo_bbs_sign(uid: str, ck: str, Header=None) -> dict: Header = {} HEADER = copy.deepcopy(_HEADER) HEADER["Cookie"] = ck - HEADER["x-rpc-app_version"] = "2.44.1" + HEADER["x-rpc-app_version"] = mihoyobbs_version HEADER["x-rpc-client_type"] = "5" HEADER["X_Requested_With"] = "com.mihoyo.hyperion" HEADER["DS"] = get_ds2(web=True) From 4f1e556b7cbb988b8b5b50ba07d531d2ee28c0f8 Mon Sep 17 00:00:00 2001 From: forchannot <100580891+forchannot@users.noreply.github.com> Date: Wed, 18 Oct 2023 01:20:49 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0salt=E5=92=8Cversion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/api.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/api.py b/api/api.py index a214670..cc5fff2 100644 --- a/api/api.py +++ b/api/api.py @@ -18,11 +18,11 @@ BBS_CAPTCHA_VERIFY = BBS_API + "/misc/api/verifyVerification" # 签到和米游币的salt -mihoyobbs_version = "2.46.1" # Salt和Version相互对应 -mihoyobbs_salt = "KZazpG4cO2QECFDBUCxdhS8cYCsQHfzn" -mihoyobbs_salt_web = "X7UOLLnTuNS3kgTJ1BUHOvKpiqp3kmym" -mihoyobbs_salt_x4 = "xV8v4Qu54lUKrEYFZkJhB8cuOh9Asafs" -mihoyobbs_salt_x6 = "t0qEgfub6cvueAPgR5m9aQWWVciEer7v" +mihoyobbs_version = "2.60.1" # Salt和Version相互对应 +mihoyobbs_salt = "AcpNVhfh0oedCobdCyFV8EE1jMOVDy9q" # K2 +mihoyobbs_salt_web = "10JyMNCqFlstEQqqMOv0rKCIdTOoJhNt" # LK2 +mihoyobbs_salt_x4 = "xV8v4Qu54lUKrEYFZkJhB8cuOh9Asafs" # 25 +mihoyobbs_salt_x6 = "t0qEgfub6cvueAPgR5m9aQWWVciEer7v" # 22 # 米游社签到列表 mihoyo_bbs_List = [