From 7b594907d0a223ed01d75033640cb318a2d356f9 Mon Sep 17 00:00:00 2001 From: Anye <1844960181@qq.com> Date: Tue, 13 Dec 2022 08:35:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=80=E8=BF=91=E5=8F=91=E7=8E=B0=E4=BA=91?= =?UTF-8?q?=E5=8E=9F=E7=A5=9E=E7=AD=BE=E5=88=B0=E5=A5=BD=E5=83=8F=E7=82=B8?= =?UTF-8?q?=E4=BA=86=EF=BC=8C=E4=BF=AE=E6=94=B9=E4=BA=86=E4=B8=80=E4=B8=8B?= =?UTF-8?q?headers=EF=BC=8C=E7=94=A8=E7=9A=84PC=E7=89=88=E7=9A=84=E4=BA=91?= =?UTF-8?q?=E5=8E=9F=E7=A5=9E=EF=BC=8C=E7=B2=BE=E7=AE=80=E4=BA=86=E9=83=A8?= =?UTF-8?q?=E5=88=86=E8=AF=B7=E6=B1=82=E5=80=BC=E9=99=8D=E4=BD=8E=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E9=A2=91=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cloud_genshin.py | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/cloud_genshin.py b/cloud_genshin.py index ce833af..26ede35 100644 --- a/cloud_genshin.py +++ b/cloud_genshin.py @@ -8,20 +8,13 @@ from loghelper import log class CloudGenshin: def __init__(self) -> None: self.headers = { - 'x-rpc-combo_token': config.config['cloud_games']['genshin']['token'], - 'x-rpc-client_type': setting.mihoyobbs_Client_type, - 'x-rpc-app_version': setting.cloudgenshin_Version, - 'x-rpc-sys_version': '12', - 'x-rpc-channel': 'mihoyo', - 'x-rpc-device_id': tools.get_device_id(), - 'x-rpc-device_name': 'Xiaomi M2012K11AC', - 'x-rpc-device_model': 'M2012K11AC', - 'x-rpc-app_id': '1953439974', - 'Referer': 'https://app.mihoyo.com', 'Host': 'api-cloudgame.mihoyo.com', - 'Connection': 'Keep-Alive', - 'Accept-Encoding': 'gzip', - 'User-Agent': 'okhttp/4.9.0' + 'Accept': '*/*', + 'Referer': 'https://app.mihoyo.com', + 'x-rpc-combo_token': config.config['cloud_games']['genshin']['token'], + 'Accept-Encoding': 'gzip, deflate', + 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.84 Safari/537.36 HBPC/12.1.1.301', + } # 分钟转小时