From 4e696eddade531f99737115183a44d7d5016f225 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Fri, 5 Aug 2022 20:21:10 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20=E4=BF=AE=E5=A4=8D=20`get=5Fgens?= =?UTF-8?q?hin=5Fclient`=20=E4=BD=BF=E7=94=A8=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E7=B1=BB=E6=88=90=E5=91=98=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/helpers.py b/utils/helpers.py index 8174d7c0..60f913c0 100644 --- a/utils/helpers.py +++ b/utils/helpers.py @@ -67,10 +67,10 @@ async def get_genshin_client(user_id: int, user_service: UserService, cookies_se if region is None: region = user.region if region == RegionEnum.HYPERION: - uid = user.yuanshen_game_uid + uid = user.yuanshen_uid client = genshin.Client(cookies=cookies, game=types.Game.GENSHIN, region=types.Region.CHINESE, uid=uid) elif region == RegionEnum.HOYOLAB: - uid = user.genshin_game_uid + uid = user.genshin_uid client = genshin.Client(cookies=cookies, game=types.Game.GENSHIN, region=types.Region.OVERSEAS, lang="zh-cn", uid=uid) else: