From e40033de028db5edfaa37813871082a7deff1085 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Sun, 31 Jul 2022 15:55:14 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20=E5=88=9D=E5=A7=8B=E5=8C=96=20`g?= =?UTF-8?q?enshin.Client`=20=E6=97=B6=E8=AE=BE=E7=BD=AE=E6=B3=A8=E5=86=8C?= =?UTF-8?q?=E5=9C=B0=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/helpers.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/helpers.py b/utils/helpers.py index 9a20bb6..109fc30 100644 --- a/utils/helpers.py +++ b/utils/helpers.py @@ -68,10 +68,11 @@ async def get_genshin_client(user_id: int, user_service: UserService, cookies_se game_service = user.default_service if game_service == ServiceEnum.HYPERION: uid = user.yuanshen_game_uid - client = genshin.Client(cookies=cookies, game=types.Game.GENSHIN, uid=uid) + client = genshin.Client(cookies=cookies, game=types.Game.GENSHIN, region=types.Region.CHINESE, uid=uid) else: uid = user.genshin_game_uid - client = genshin.Client(cookies=cookies, lang="zh-cn", uid=uid) + client = genshin.Client(cookies=cookies, + game=types.Game.GENSHIN, region=types.Region.OVERSEAS, lang="zh-cn", uid=uid) return client