From f2d10273afd965f24343f5afc3187728b8a55306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Thu, 1 Dec 2022 11:23:22 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20unresolved=20attribute=20r?= =?UTF-8?q?eference=20'hoyolab=5Fuid'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reason: hoyolab_uid → hoyolab_id - [genshin.py](https://github.com/thesadru/genshin.py/commit/8c71c0d9652137a40a96dcf6922176ee573bfa38) --- plugins/genshin/cookies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/genshin/cookies.py b/plugins/genshin/cookies.py index c613ac22..60c19fff 100644 --- a/plugins/genshin/cookies.py +++ b/plugins/genshin/cookies.py @@ -321,7 +321,7 @@ class SetUserCookies(Plugin.Conversation, BasePlugin.Conversation): logger.info("检测到用户 %s[%s] 使用 V2 Cookie 正在尝试获取 account_id", user.full_name, user.id) if client.region == types.Region.CHINESE: account_info = await client.get_hoyolab_user(-1) - account_id = account_info.hoyolab_uid + account_id = account_info.hoyolab_id add_user_command_data.cookies["account_id"] = str(account_id) logger.success("获取用户 %s[%s] account_id[%s] 成功", user.full_name, user.id, account_id) else: