From 17c27372b0214b2fcbfc9f1f577577f22dd9c9a7 Mon Sep 17 00:00:00 2001 From: zhilv Date: Fri, 24 Apr 2026 14:51:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/main.py b/main.py index 4f4faca..300f460 100644 --- a/main.py +++ b/main.py @@ -84,7 +84,7 @@ def replace_html_entities(text, replace_mode="keep_char"): class CKWK: - def __init__(self, un: str, pw: str, host: str, ai_type="kimi") -> None: + def __init__(self, un: str, pw: str, host: str, ai_type="deepseek") -> None: """ un: 用户名 pw: 密码 @@ -113,13 +113,13 @@ class CKWK: adapter = HTTPAdapter(max_retries=retry_strategy) self.session.mount("http://", adapter) self.session.mount("https://", adapter) - # self.session.verify = False - # self.session.proxies.update( - # { - # "http": "http://127.0.0.1:9000", - # "https": "http://127.0.0.1:9000", - # } - # ) + self.session.verify = False + self.session.proxies.update( + { + "http": "http://127.0.0.1:9000", + "https": "http://127.0.0.1:9000", + } + ) self.username = un self.host = host self.password = pw @@ -369,6 +369,7 @@ class CKWK: while aa == 1: print(f"作业链接: {self.start_url}") aa = input("现在是最后一道题,请你去检查后输入 0 后自动提交:") + aa = int(aa) if aa == 0: data["finish"] = "1" resp = self.session.post(