Skip to content

Commit

Permalink
fast: 优化打卡判断
Browse files Browse the repository at this point in the history
  • Loading branch information
Rockytkg committed Jan 4, 2025
1 parent ba3158b commit 5f93263
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions coreApi/MainLogicApi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5f93263

Please sign in to comment.