🐛 Fix no default account ID provided

This commit is contained in:
洛水居室 2023-03-17 08:31:22 +08:00
parent e025a3a656
commit 27e1b16ef4
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

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