🐛 修复mys签到

This commit is contained in:
CMHopeSunshine 2022-08-05 10:34:27 +08:00
parent fa02817bab
commit 1fd8ea1234

View File

@ -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