From 9179f56452e531a0ec1a314283a0f588c44527f6 Mon Sep 17 00:00:00 2001 From: Womsxd <45663319+Womsxd@users.noreply.github.com> Date: Fri, 5 Aug 2022 08:45:20 +0800 Subject: [PATCH] =?UTF-8?q?web=E7=9A=84salt=E6=8B=BF=E5=88=B0=EF=BC=8C?= =?UTF-8?q?=E5=B7=B2=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- genshin.py | 2 +- honkai2.py | 2 +- honkai3rd.py | 2 +- setting.py | 4 ++-- tearsofthemis.py | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) 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}'