chore: update project
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user