修正普通模式下无法记录答题结果的bug

This commit is contained in:
zhl 2021-05-28 13:42:13 +08:00
parent 8ad9c573b2
commit cc5ecd665c

View File

@ -112,7 +112,7 @@ class PuzzleController extends BaseController {
statMap.timeLast = Date.now() statMap.timeLast = Date.now()
statMap.answer.set(id, result) statMap.answer.set(id, result)
statMap.total++ statMap.total++
if (record.type !== 1) { if (record.type !== 3) {
if (result == 0) { if (result == 0) {
statMap.rightCount++ statMap.rightCount++
statMap.comboCount++ statMap.comboCount++