소스 검색

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

过卫栋 1 개월 전
부모
커밋
03805ded6f
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      app/Services/ExamPdfExportService.php

+ 1 - 0
app/Services/ExamPdfExportService.php

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