From 1fd8ea1234a3e1272303037a68453db1c55f2482 Mon Sep 17 00:00:00 2001 From: CMHopeSunshine <277073121@qq.com> Date: Fri, 5 Aug 2022 10:34:27 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8Dmys=E7=AD=BE=E5=88=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/auth_util.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/utils/auth_util.py b/utils/auth_util.py index 4a0cd13..1f2aa55 100644 --- a/utils/auth_util.py +++ b/utils/auth_util.py @@ -145,7 +145,8 @@ def get_headers(cookie, q='', b=None): def get_old_version_ds() -> str: - s = 'h8w582wxwgqvahcdkpvdhbh2w9casgfl' + # s = 'h8w582wxwgqvahcdkpvdhbh2w9casgfl' + s = 'dWCcD2FsOUXEstC5f9xubswZxEeoBOTc' t = str(int(time())) r = ''.join(random.sample(string.ascii_lowercase + string.digits, 6)) c = md5("salt=" + s + "&t=" + t + "&r=" + r) @@ -162,10 +163,9 @@ def get_sign_headers(cookie): 'Origin': 'https://webstatic.mihoyo.com', 'X_Requested_With': 'com.mihoyo.hyperion', 'DS': get_old_version_ds(), - 'x-rpc-client_type': '5', - 'Referer': 'https://webstatic.mihoyo.com/bbs/event/signin-ys/index.html?bbs_auth_required=true&act_id' - '=e202009291139501&utm_source=bbs&utm_medium=mys&utm_campaign=icon', - 'x-rpc-app_version': '2.3.0' + 'x-rpc-client_type': '2', + 'Referer': 'https://webstatic.mihoyo.com/bbs/event/signin-ys/index.html?bbs_auth_required=true&act_id=e202009291139501&utm_source=bbs&utm_medium=mys&utm_campaign=icon', + 'x-rpc-app_version': '2.28.1' } return headers