Selaa lähdekoodia

fix: 修复指定题目id生成pdf接口的问题

过卫栋 6 päivää sitten
vanhempi
commit
03805ded6f
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      app/Services/ExamPdfExportService.php

+ 1 - 0
app/Services/ExamPdfExportService.php

@@ -2133,6 +2133,7 @@ class ExamPdfExportService
                 'student' => $student,
                 'student' => $student,
                 'teacher' => $teacher,
                 'teacher' => $teacher,
                 'grading' => $grading,
                 'grading' => $grading,
+                'includeAnswer' => false, // exam-paper 视图需要这个变量
             ])->render();
             ])->render();
 
 
             if (empty(trim($html))) {
             if (empty(trim($html))) {