소스 검색

卷子生成pdf效果制作

yemeishu 2 주 전
부모
커밋
83396e2fde
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Services/ExamPdfExportService.php

+ 1 - 1
app/Services/ExamPdfExportService.php

@@ -130,7 +130,7 @@ class ExamPdfExportService
 
         if (!$process->isSuccessful() || !file_exists($tmpPdf)) {
             Log::error('ExamPdfExportService: Chrome 渲染失败', [
-                'cmd' => implode(' ', $process->getCommandLine()),
+                'cmd' => implode(' ', (array) $process->getCommandLine()),
                 'exit_code' => $process->getExitCode(),
                 'error' => $process->getErrorOutput(),
                 'output' => $process->getOutput(),