mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-21 22:58:05 +00:00
🐛 Fix no default account ID provided
This commit is contained in:
parent
e025a3a656
commit
27e1b16ef4
@ -281,7 +281,14 @@ class GenshinHelper(Plugin):
|
||||
else:
|
||||
raise TypeError("Region is not None")
|
||||
|
||||
client = genshin.Client(cookies, lang="zh-cn", game=genshin.types.Game.GENSHIN, region=game_region, uid=uid)
|
||||
client = genshin.Client(
|
||||
cookies,
|
||||
lang="zh-cn",
|
||||
game=genshin.types.Game.GENSHIN,
|
||||
region=game_region,
|
||||
uid=uid,
|
||||
hoyolab_id=player.account_id,
|
||||
)
|
||||
|
||||
if self.genshin_cache is not None:
|
||||
client.cache = self.genshin_cache
|
||||
|
Loading…
Reference in New Issue
Block a user