fix: 去除调试代码,以及添加调用 AI 模型的延时

This commit is contained in:
2025-12-16 23:00:28 +08:00
parent caccd18b23
commit 24411dfbbb
3 changed files with 14 additions and 12 deletions

18
main.py
View File

@@ -112,13 +112,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
@@ -417,7 +417,7 @@ class CKWK:
aa = 1
while aa == 1:
print(f"考试链接: {self.start_url}")
aa = input("现在是最后一道,请你去检查后输入 0 后自动提交:")
aa = int(input("现在是最后一道,请你去检查后输入 0 后自动提交:"))
if aa == 0:
data["finish"] = "1"
resp = self.session.post(
@@ -755,6 +755,7 @@ class CKWK:
int(q.get("index", 1)) < len(self.qas),
q.get("index", 1),
)
time.sleep(2)
# break
break
@@ -799,6 +800,7 @@ class CKWK:
int(q.get("index", 1)) < len(self.qas),
q.get("index", 1),
)
time.sleep(2)
# break
break