From 1dc8cb2a9809a6bcec00f91161c784da3c47156c Mon Sep 17 00:00:00 2001 From: xiayingLIULI <88604496+xiayingLIULI@users.noreply.github.com> Date: Mon, 22 Aug 2022 13:45:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=B1=B3=E6=B8=B8=E7=A4=BE?= =?UTF-8?q?=E7=AD=BE=E5=88=B0=E5=9C=A8=E6=97=A0=E7=94=A8=E6=88=B7cookie?= =?UTF-8?q?=E7=9A=84=E6=83=85=E5=86=B5=E4=B8=8B=E6=89=A7=E8=A1=8C=E7=9A=84?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/genshin/query_user/mihoyobbs_sign/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/genshin/query_user/mihoyobbs_sign/__init__.py b/plugins/genshin/query_user/mihoyobbs_sign/__init__.py index 43e59352..4298183c 100644 --- a/plugins/genshin/query_user/mihoyobbs_sign/__init__.py +++ b/plugins/genshin/query_user/mihoyobbs_sign/__init__.py @@ -48,7 +48,7 @@ async def _(event: MessageEvent, cmd: Tuple[str, ...] = Command()): async def mihoyobbs_sign(user_id): uid = await Genshin.get_user_uid(user_id) - if not uid: + if not uid or not await Genshin.get_user_cookie(uid, True): await mihoyobbs_matcher.finish("请先绑定uid和cookie!", at_sender=True) stuid = await Genshin.get_stuid(uid) stoken = await Genshin.get_stoken(uid)