sync: 同步服务器最新代码 (2026-01-27)
Some checks failed
continuous-integration/drone/push Build is failing

更新内容:
- 后端 AI 服务优化(能力分析、知识点解析等)
- 前端考试和陪练界面更新
- 修复多个 prompt 和 JSON 解析问题
- 更新 Coze 语音客户端
This commit is contained in:
111
2026-01-27 10:03:28 +08:00
parent fcef140d1a
commit 442ac78b56
28 changed files with 324 additions and 121 deletions

View File

@@ -98,6 +98,7 @@ export interface JudgeAnswerResponse {
*/
export interface RecordMistakeRequest {
exam_id: number
round: number // 考试轮次(1/2/3)
question_id?: number | null
knowledge_point_id?: number | null
question_content: string
@@ -154,9 +155,18 @@ export function recordMistake(data: RecordMistakeRequest) {
/**
* 获取错题记录
* @param examId 考试ID
* @param round 指定轮次(可选),用于获取特定轮次的错题
* 第2轮考试时传入round=1获取第1轮的错题
* 第3轮考试时传入round=2获取第2轮的错题
* 不传则获取该考试的所有错题
*/
export function getMistakes(examId: number) {
return http.get<GetMistakesResponse>(`/api/v1/exams/mistakes?exam_id=${examId}`, {
export function getMistakes(examId: number, round?: number) {
let url = `/api/v1/exams/mistakes?exam_id=${examId}`
if (round !== undefined) {
url += `&round=${round}`
}
return http.get<GetMistakesResponse>(url, {
showLoading: false,
})
}