From 27e1b16ef499e7b4df871a8d8ad269d8e5b18636 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Fri, 17 Mar 2023 08:31:22 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20no=20default=20account=20I?= =?UTF-8?q?D=20provided?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/tools/genshin.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/tools/genshin.py b/plugins/tools/genshin.py index 5e855c86..51c7ed8a 100644 --- a/plugins/tools/genshin.py +++ b/plugins/tools/genshin.py @@ -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