mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-12-16 13:40:53 +08:00
🐛 修复mys签到
This commit is contained in:
parent
fa02817bab
commit
1fd8ea1234
@ -145,7 +145,8 @@ def get_headers(cookie, q='', b=None):
|
|||||||
|
|
||||||
|
|
||||||
def get_old_version_ds() -> str:
|
def get_old_version_ds() -> str:
|
||||||
s = 'h8w582wxwgqvahcdkpvdhbh2w9casgfl'
|
# s = 'h8w582wxwgqvahcdkpvdhbh2w9casgfl'
|
||||||
|
s = 'dWCcD2FsOUXEstC5f9xubswZxEeoBOTc'
|
||||||
t = str(int(time()))
|
t = str(int(time()))
|
||||||
r = ''.join(random.sample(string.ascii_lowercase + string.digits, 6))
|
r = ''.join(random.sample(string.ascii_lowercase + string.digits, 6))
|
||||||
c = md5("salt=" + s + "&t=" + t + "&r=" + r)
|
c = md5("salt=" + s + "&t=" + t + "&r=" + r)
|
||||||
@ -162,10 +163,9 @@ def get_sign_headers(cookie):
|
|||||||
'Origin': 'https://webstatic.mihoyo.com',
|
'Origin': 'https://webstatic.mihoyo.com',
|
||||||
'X_Requested_With': 'com.mihoyo.hyperion',
|
'X_Requested_With': 'com.mihoyo.hyperion',
|
||||||
'DS': get_old_version_ds(),
|
'DS': get_old_version_ds(),
|
||||||
'x-rpc-client_type': '5',
|
'x-rpc-client_type': '2',
|
||||||
'Referer': 'https://webstatic.mihoyo.com/bbs/event/signin-ys/index.html?bbs_auth_required=true&act_id'
|
'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',
|
||||||
'=e202009291139501&utm_source=bbs&utm_medium=mys&utm_campaign=icon',
|
'x-rpc-app_version': '2.28.1'
|
||||||
'x-rpc-app_version': '2.3.0'
|
|
||||||
}
|
}
|
||||||
return headers
|
return headers
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user