修正 vercal 部署失敗問題

This commit is contained in:
2025-09-29 21:21:52 +08:00
parent 426deafbb8
commit 3aba1451bd
144 changed files with 321 additions and 11283 deletions

View File

@@ -94,14 +94,14 @@ export async function GET(request: NextRequest) {
console.log('Debug: 所有創意題目數量:', allCreativeQuestions.length)
for (let i = 0; i < answerEntries.length; i++) {
const [questionIndex, score] = answerEntries[i]
const [questionIndex, score] = answerEntries[i] as [string, number]
const question = allCreativeQuestions[parseInt(questionIndex)] // 使用索引獲取題目
if (question) {
questions.push({
...question,
type: 'creative',
userAnswer: score.toString(), // 創意題的答案就是分數
score: score as number,
score: score,
isReverse: question.is_reverse
})
}