web的salt拿到,已更新
This commit is contained in:
parent
6f0f3781cf
commit
9179f56452
@ -12,7 +12,7 @@ from account import get_account_list
|
||||
class Genshin:
|
||||
def __init__(self) -> None:
|
||||
self.headers = setting.headers
|
||||
self.headers['DS'] = tools.get_ds(web=True, web_old=True)
|
||||
self.headers['DS'] = tools.get_ds(web=True, web_old=False)
|
||||
self.headers['Referer'] = 'https://webstatic.mihoyo.com/bbs/event/signin-ys/index.html?bbs_auth_required=true'\
|
||||
f'&act_id={setting.genshin_Act_id}&utm_source=bbs&utm_medium=mys&utm_campaign=icon'
|
||||
self.headers['Cookie'] = config.config["account"]["cookie"]
|
||||
|
@ -12,7 +12,7 @@ from account import get_account_list
|
||||
class Honkai2:
|
||||
def __init__(self) -> None:
|
||||
self.headers = setting.headers
|
||||
self.headers['DS'] = tools.get_ds(web=True, web_old=True)
|
||||
self.headers['DS'] = tools.get_ds(web=True, web_old=False)
|
||||
self.headers['Referer'] = 'https://webstatic.mihoyo.com/bbs/event/signin/bh2/index.html?bbs_auth_required' \
|
||||
f'=true&act_id={setting.honkai2_Act_id}&bbs_presentation_style=fullscreen' \
|
||||
'&utm_source=bbs&utm_medium=mys&utm_campaign=icon'
|
||||
|
@ -12,7 +12,7 @@ from account import get_account_list
|
||||
class Honkai3rd:
|
||||
def __init__(self) -> None:
|
||||
self.headers = setting.headers
|
||||
self.headers['DS'] = tools.get_ds(web=True, web_old=True)
|
||||
self.headers['DS'] = tools.get_ds(web=True, web_old=False)
|
||||
self.headers['Referer'] = 'https://webstatic.mihoyo.com/bbs/event/signin/bh3/index.html?bbs_auth_required' \
|
||||
f'=true&act_id={setting.honkai3rd_Act_id}&bbs_presentation_style=fullscreen' \
|
||||
'&utm_source=bbs&utm_medium=mys&utm_campaign=icon'
|
||||
|
@ -1,6 +1,6 @@
|
||||
# 米游社的Salt
|
||||
mihoyobbs_Salt = "dWCcD2FsOUXEstC5f9xubswZxEeoBOTc"
|
||||
mihoyobbs_Salt_web = "14bmu1mz0yuljprsfgpvjh3ju2ni468r"
|
||||
mihoyobbs_Salt_web = "ulInCDohgEs557j0VsPDYnQaaz6KJcv5"
|
||||
mihoyobbs_Salt_web_old = "h8w582wxwgqvahcdkpvdhbh2w9casgfl"
|
||||
# 米游社的版本
|
||||
mihoyobbs_Version = "2.28.1" # Slat和Version相互对应
|
||||
@ -60,7 +60,7 @@ headers = {
|
||||
'Accept': 'application/json, text/plain, */*',
|
||||
'DS': "",
|
||||
'Origin': 'https://webstatic.mihoyo.com',
|
||||
'x-rpc-app_version': mihoyobbs_Version_old,
|
||||
'x-rpc-app_version': mihoyobbs_Version,
|
||||
'User-Agent': 'Mozilla/5.0 (Linux; Android 9; Unspecified Device) AppleWebKit/537.36 (KHTML, like Gecko) '
|
||||
'Version/4.0 Chrome/39.0.0.0 Mobile Safari/537.36 miHoYoBBS/2.3.0',
|
||||
'x-rpc-client_type': mihoyobbs_Client_type_web,
|
||||
|
@ -12,7 +12,7 @@ from account import get_account_list
|
||||
class Tears_of_themis:
|
||||
def __init__(self) -> None:
|
||||
self.headers = setting.headers
|
||||
self.headers['DS'] = tools.get_ds(web=True, web_old=True)
|
||||
self.headers['DS'] = tools.get_ds(web=True, web_old=False)
|
||||
self.headers['Referer'] = 'https://webstatic.mihoyo.com/bbs/event/signin/nxx/index.html?bbs_auth_required' \
|
||||
'=true&bbs_presentation_style=fullscreen' \
|
||||
f'act_id={setting.tearsofthemis_Act_id}'
|
||||
|
Loading…
Reference in New Issue
Block a user