mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-24 23:29:40 +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:
|
if region is None:
|
||||||
region = user.region
|
region = user.region
|
||||||
if region == RegionEnum.HYPERION:
|
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)
|
client = genshin.Client(cookies=cookies, game=types.Game.GENSHIN, region=types.Region.CHINESE, uid=uid)
|
||||||
elif region == RegionEnum.HOYOLAB:
|
elif region == RegionEnum.HOYOLAB:
|
||||||
uid = user.genshin_game_uid
|
uid = user.genshin_uid
|
||||||
client = genshin.Client(cookies=cookies,
|
client = genshin.Client(cookies=cookies,
|
||||||
game=types.Game.GENSHIN, region=types.Region.OVERSEAS, lang="zh-cn", uid=uid)
|
game=types.Game.GENSHIN, region=types.Region.OVERSEAS, lang="zh-cn", uid=uid)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user