Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
15c20a3
refactor: 优化全局任务调度、修复多线程冲突与重构题库接口
Zropk66 Jun 1, 2026
589e0bc
feat(tiku): 新增手动输入模式并优化多线程并发安全与搜题机制
Zropk66 Jun 2, 2026
8fc2e28
fix(tiku): 增加搜题长度对齐防御与安全关闭 tqdm 进度条
Zropk66 Jun 2, 2026
ca6cb70
refactor(tiku): 优化连接测试锁粒度、规整手动模式逻辑并清理冗余比对
Zropk66 Jun 2, 2026
0acedc7
fix(tiku): 改善手动模式文本匹配逻辑,修复403时长刷新丢失与大模型并发锁
Zropk66 Jun 2, 2026
57ac976
fix(tiku): 在 SiliconFlow 连接测试中引入限频间隔等待以避免 API 触发频率限制
Zropk66 Jun 2, 2026
e3e88a5
refactor(tiku): 修复静态分析和圈复杂度过高的问题
Zropk66 Jun 2, 2026
90c77fd
refactor: 修复静态分析和圈复杂度过高的问题和优化PEP约定
Zropk66 Jun 2, 2026
d382cf6
refactor: 修复静态分析和圈复杂度过高的问题和优化PEP约定
Zropk66 Jun 2, 2026
19c334f
Merge remote-tracking branch 'origin/feat/manual-mode' into feat/manu…
Zropk66 Jun 2, 2026
70dd90e
refactor: 修复静态分析和圈复杂度过高的问题和优化PEP约定,优化了代码格式
Zropk66 Jun 2, 2026
53bf763
refactor: 优化了代码格式
Zropk66 Jun 2, 2026
9877df1
Merge remote-tracking branch 'origin/feat/manual-mode' into feat/manu…
Zropk66 Jun 2, 2026
43a64a1
refactor
Zropk66 Jun 2, 2026
84d0364
refactor
Zropk66 Jun 2, 2026
d45fce6
refactor
Zropk66 Jun 2, 2026
372ccd8
Merge branch 'main' into feat/manual-mode
Zropk66 Jun 2, 2026
9909329
refactor
Zropk66 Jun 2, 2026
c56a41f
Merge remote-tracking branch 'origin/feat/manual-mode' into feat/manu…
Zropk66 Jun 2, 2026
a5faddf
refactor
Zropk66 Jun 2, 2026
7abf7f0
feat: 增加登录成功后获取登录用户名。
Zropk66 Jun 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
def formatted_output(_status, _text, _data):
return {"status": _status, "msg": _text, "data": _data}
return {"status": _status, "msg": _text, "data": _data}
942 changes: 764 additions & 178 deletions api/answer.py

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions api/answer_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ def check_multiple(answer):


def check_judgement(answer, true_list, false_list):
if answer in true_list:
val = str(answer).strip().lower()
if val in ['true', 't', '1', '对', '正确', '√', '是', 'yes', 'y'] or val in [x.lower() for x in true_list]:
return 1
elif answer in false_list:
elif val in ['false', 'f', '0', '错', '错误', '×', '否', 'no', 'n', '不对', '不正确'] or val in [x.lower() for x in
false_list]:
return 0
else:
return -1
Expand All @@ -41,6 +43,11 @@ def check_completion(answer):


def check_answer(answer, type, tiku): # 只会写小杯代码,这里用个tiku感觉怪怪的,但先这么写着
# 如果是手动模式或多题库回退包装器,直接信任
# (手动模式豁免常规校验;回退包装器因其子题库在各自环节均已单独校验过,此处无需二次校验,以防二次过滤误杀)
if getattr(tiku, 'is_manual', False) or getattr(tiku, 'skip_answer_validation', False):
return True

if type == 'single':
if check_single(answer) and check_judgement(answer, tiku.true_list, tiku.false_list) == -1:
return True
Expand Down
Loading