judge&ui: fix bugs

This commit is contained in:
panda committed 2022-06-27 15:26:35 +08:00
1 parent 76745639c1
commit 0195ba361e
2 files changed
+11 -2

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ export async function judge({
memory: 0,
};
if (typeof ansInfo[0] === 'string') {
if (answer[0].trim() === answers[key].trim()) {
if (ansInfo[0].trim() === answers[key].trim()) {
totalScore += score;
totalStatus = Math.max(totalStatus, STATUS.STATUS_ACCEPTED);
next({