chore: update project

This commit is contained in:
jocay
2026-08-09 22:10:19 +08:00
parent 22b5d75d2d
commit 4ef6b8af05
10 changed files with 998 additions and 107 deletions
+3 -1
View File
@@ -58,8 +58,10 @@ function findQuestion(qid) {
return null;
}
// 答题页需要整套缓存以支持离线判分,因此下发答案与解析。
// 保留显式白名单:以后给题目加内部字段(如出题备注)不会顺手漏出去。
function toPublic(q) {
return { id: q.id, lv: q.lv, q: q.q, opts: q.opts };
return { id: q.id, lv: q.lv, q: q.q, opts: q.opts, ans: q.ans, exp: q.exp };
}
function validateBody(body) {