From caccd18b2335b49577cefd9565d1bca2a6754503 Mon Sep 17 00:00:00 2001 From: zhilv Date: Tue, 16 Dec 2025 21:04:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index 53a9a59..1fc851f 100644 --- a/main.py +++ b/main.py @@ -408,6 +408,11 @@ class CKWK: headers=headers, ) + if resp.status_code == 200 and resp.json().get("status", False): + self.log( + f'{index}/{len(self.qas)} 提交答案: {resp.json().get("msg", "")} {answerID} => {answer} {final}' + ) + if not final: aa = 1 while aa == 1: @@ -422,11 +427,6 @@ class CKWK: ) break - if resp.status_code == 200 and resp.json().get("status", False): - self.log( - f'{index}/{len(self.qas)} 提交答案: {resp.json().get("msg", "")} {answerID} => {answer} {final}' - ) - def get_course(self, _id: str) -> tuple[int, int]: resp = self.session.get("https://{}/user/node?nodeId={}".format(self.host, _id)) if resp.status_code == 200 and "错误提示" not in resp.text: