🔧 修复 get_genshin_client 使用错误的类成员问题

This commit is contained in:
洛水居室 2022-08-05 20:21:10 +08:00
parent e5890201a3
commit 4e696eddad
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -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: