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