From 76bef8a725d78e02b08311b75e43d3691b000d7d Mon Sep 17 00:00:00 2001 From: xiayingLIULI <88604496+xiayingLIULI@users.noreply.github.com> Date: Mon, 22 Aug 2022 00:40:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E7=B1=B3=E6=B8=B8=E7=A4=BEcookie?= =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E5=88=A4=E6=96=AD=EF=BC=8C=E6=95=B4=E5=90=88?= =?UTF-8?q?=E7=B1=B3=E6=B8=B8=E7=A4=BE=E7=AD=BE=E5=88=B0=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/genshin/query_user/bind/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/genshin/query_user/bind/__init__.py b/plugins/genshin/query_user/bind/__init__.py index 8cb3be7d..38a8ac74 100644 --- a/plugins/genshin/query_user/bind/__init__.py +++ b/plugins/genshin/query_user/bind/__init__.py @@ -93,6 +93,8 @@ async def _(event: MessageEvent, cmd: Tuple[str, ...] = Command(), arg: Message print(cookie) cookie_json = json.loads(cookie) print(cookie_json) + if 'login_ticket' not in cookie_json: + await bind.finish("请发送正确的cookie!") login_ticket = cookie_json['login_ticket'] # try: res = await AsyncHttpx.get(url=bbs_Cookie_url.format(login_ticket))