From 6ab0f95a82e4ca76bd40e7b70f875455e5ab4b13 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 6 Nov 2025 23:45:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=A4=B1=E8=B4=A5,=20?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E5=AF=86=E7=A0=81=E5=A4=B1=E8=B4=A5=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E6=88=AA=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spider/task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spider/task.py b/spider/task.py index 873c77d..50b8b08 100644 --- a/spider/task.py +++ b/spider/task.py @@ -978,7 +978,7 @@ def playwright_m_login(username, password, code_2fa=None): failed_login = page.query_selector(failed_login_selector) if failed_login: # 登录失败, 返回失败信息 - page.screenshot(path=os.path.join('./log/screenshot/', f'{username}_{time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())}_login_failed.png')) + page.screenshot(path=f'./log/screenshot/{username}_{time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())}_login_failed.png') logger.info(f"用户名:{username} 密码错误 {failed_login.text_content()}") raise OperationFailed(failed_login.text_content())