Browse Source

卷子生成pdf效果制作

yemeishu 2 weeks ago
parent
commit
83396e2fde
1 changed files with 1 additions and 1 deletions
  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(),