From 5f93263f79602a034a82b55cffca8a7384e9d972 Mon Sep 17 00:00:00 2001 From: Rockytkg Date: Sat, 4 Jan 2025 11:27:49 +0800 Subject: [PATCH] =?UTF-8?q?fast:=20=E4=BC=98=E5=8C=96=E6=89=93=E5=8D=A1?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- coreApi/MainLogicApi.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coreApi/MainLogicApi.py b/coreApi/MainLogicApi.py index ff5a6b8..cc8ce82 100644 --- a/coreApi/MainLogicApi.py +++ b/coreApi/MainLogicApi.py @@ -77,6 +77,9 @@ def _post_request( response.raise_for_status() rsp = response.json() + if rsp.get("code") == 200 and rsp.get("msg", "未知错误") == "302": + raise ValueError("打卡失败,触发行为验证码") + if rsp.get("code") == 200 or rsp.get("code") == 6111: return rsp