From 3c5ab1062161a1b69ec84d3f205f00babf6944c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Thu, 1 Dec 2022 20:02:09 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Update=20referer=20of=20`genshin?= =?UTF-8?q?.py`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/patch/genshin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/patch/genshin.py b/utils/patch/genshin.py index 98538e6..26af621 100644 --- a/utils/patch/genshin.py +++ b/utils/patch/genshin.py @@ -103,7 +103,7 @@ class BaseClient: headers = { "User-Agent": ua, "X_Requested_With": "com.mihoyo.hoyolab", - "Referer": "https://webstatic-sea.hoyolab.com", + "Referer": "https://webstatic.mihoyo.com", "x-rpc-device_id": get_device_id(device_id), "x-rpc-app_version": app_version, "x-rpc-client_type": client_type, @@ -284,7 +284,7 @@ class HoyolabClient: ua = get_ua(device="Paimon Build " + device_id[0:5], version="2.40.0") headers = { "User-Agent": ua, - "Referer": "https://bbs.mihoyo.com/", + "Referer": "https://www.miyoushe.com/ys/", "x-rpc-device_id": get_device_id(device_id), "x-rpc-app_version": "2.40.0", "x-rpc-client_type": "4",