diff --git a/genshin.py b/genshin.py index 11c5c75..0c90828 100644 --- a/genshin.py +++ b/genshin.py @@ -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"] diff --git a/honkai2.py b/honkai2.py index 74b0ff4..186d458 100644 --- a/honkai2.py +++ b/honkai2.py @@ -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' diff --git a/honkai3rd.py b/honkai3rd.py index ad6758a..e918672 100644 --- a/honkai3rd.py +++ b/honkai3rd.py @@ -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' diff --git a/setting.py b/setting.py index 253a5be..49209f5 100644 --- a/setting.py +++ b/setting.py @@ -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, diff --git a/tearsofthemis.py b/tearsofthemis.py index 011c9b1..d0b8a25 100644 --- a/tearsofthemis.py +++ b/tearsofthemis.py @@ -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}'