From 0d38f6cba864ced6f6a25401f824ad97e3b6a89a Mon Sep 17 00:00:00 2001 From: SlyAimer <2289782085@qq.com> Date: Sat, 15 Feb 2025 17:23:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95wenku8=E8=BF=9E=E9=80=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/check.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/plugins/check.py b/src/plugins/check.py index 60c4ae7..3f5722e 100644 --- a/src/plugins/check.py +++ b/src/plugins/check.py @@ -110,4 +110,8 @@ wenku8 = on_command("/wenku8", rule=to_me(), priority=10, block=True) async def wenku8(): # 注意:这里使用了Session对象来保持会话状态 login_response = requests.post(login_url, data=login_data, headers=headers) - print(login_response) \ No newline at end of file + # 检查登录是否成功(根据实际需求调整) + if login_response.status_code == 200: + # 登录成功后,Session对象已经自动保存了Cookie + # 可以直接使用该Session对象访问受保护的页面 + print("登录成功!") \ No newline at end of file