所有人回答完成后, 还是等待本轮结束再发送下一题

This commit is contained in:
zhl 2021-05-06 14:50:37 +08:00
parent e480435aa4
commit 32c2662a6f

View File

@ -98,9 +98,10 @@ class PuzzleController extends BaseController {
if (mode == 1) { if (mode == 1) {
let score = result ? 3 : -1 let score = result ? 3 : -1
await updateScore(history.room, [{accountid, score }]) await updateScore(history.room, [{accountid, score }])
if (checkSubFinish(history, id)) {
await sendOneQuestion(history) // if (checkSubFinish(history, id)) {
} // await sendOneQuestion(history)
// }
} }
return { result, answer: record.a1, stats: history.members } return { result, answer: record.a1, stats: history.members }
} }