web的salt拿到,已更新

This commit is contained in:
Womsxd 2022-08-05 08:45:20 +08:00
parent 6f0f3781cf
commit 9179f56452
No known key found for this signature in database
GPG Key ID: 0FE76418EE689B68
5 changed files with 6 additions and 6 deletions

View File

@ -12,7 +12,7 @@ from account import get_account_list
class Genshin: class Genshin:
def __init__(self) -> None: def __init__(self) -> None:
self.headers = setting.headers 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'\ 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' f'&act_id={setting.genshin_Act_id}&utm_source=bbs&utm_medium=mys&utm_campaign=icon'
self.headers['Cookie'] = config.config["account"]["cookie"] self.headers['Cookie'] = config.config["account"]["cookie"]

View File

@ -12,7 +12,7 @@ from account import get_account_list
class Honkai2: class Honkai2:
def __init__(self) -> None: def __init__(self) -> None:
self.headers = setting.headers 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' \ 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' \ f'=true&act_id={setting.honkai2_Act_id}&bbs_presentation_style=fullscreen' \
'&utm_source=bbs&utm_medium=mys&utm_campaign=icon' '&utm_source=bbs&utm_medium=mys&utm_campaign=icon'

View File

@ -12,7 +12,7 @@ from account import get_account_list
class Honkai3rd: class Honkai3rd:
def __init__(self) -> None: def __init__(self) -> None:
self.headers = setting.headers 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' \ 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' \ f'=true&act_id={setting.honkai3rd_Act_id}&bbs_presentation_style=fullscreen' \
'&utm_source=bbs&utm_medium=mys&utm_campaign=icon' '&utm_source=bbs&utm_medium=mys&utm_campaign=icon'

View File

@ -1,6 +1,6 @@
# 米游社的Salt # 米游社的Salt
mihoyobbs_Salt = "dWCcD2FsOUXEstC5f9xubswZxEeoBOTc" mihoyobbs_Salt = "dWCcD2FsOUXEstC5f9xubswZxEeoBOTc"
mihoyobbs_Salt_web = "14bmu1mz0yuljprsfgpvjh3ju2ni468r" mihoyobbs_Salt_web = "ulInCDohgEs557j0VsPDYnQaaz6KJcv5"
mihoyobbs_Salt_web_old = "h8w582wxwgqvahcdkpvdhbh2w9casgfl" mihoyobbs_Salt_web_old = "h8w582wxwgqvahcdkpvdhbh2w9casgfl"
# 米游社的版本 # 米游社的版本
mihoyobbs_Version = "2.28.1" # Slat和Version相互对应 mihoyobbs_Version = "2.28.1" # Slat和Version相互对应
@ -60,7 +60,7 @@ headers = {
'Accept': 'application/json, text/plain, */*', 'Accept': 'application/json, text/plain, */*',
'DS': "", 'DS': "",
'Origin': 'https://webstatic.mihoyo.com', '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) ' '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', 'Version/4.0 Chrome/39.0.0.0 Mobile Safari/537.36 miHoYoBBS/2.3.0',
'x-rpc-client_type': mihoyobbs_Client_type_web, 'x-rpc-client_type': mihoyobbs_Client_type_web,

View File

@ -12,7 +12,7 @@ from account import get_account_list
class Tears_of_themis: class Tears_of_themis:
def __init__(self) -> None: def __init__(self) -> None:
self.headers = setting.headers 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' \ self.headers['Referer'] = 'https://webstatic.mihoyo.com/bbs/event/signin/nxx/index.html?bbs_auth_required' \
'=true&bbs_presentation_style=fullscreen' \ '=true&bbs_presentation_style=fullscreen' \
f'act_id={setting.tearsofthemis_Act_id}' f'act_id={setting.tearsofthemis_Act_id}'