mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-25 09:37:30 +00:00
🔧 修复 get_genshin_client
使用错误的类成员问题
This commit is contained in:
parent
e5890201a3
commit
4e696eddad
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user