大侠咬超人 6 дней назад
Родитель
Сommit
b7df3013e4
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      app/Services/ExamPdfExportService.php

+ 2 - 0
app/Services/ExamPdfExportService.php

@@ -1073,6 +1073,8 @@ class ExamPdfExportService
             '--disable-background-mode',
             '--disable-extensions-http-throttling',
             '--disable-ipc-flooding-protection',
+            '--single-process',           // 单进程模式,避免 dbus 问题
+            '--disable-features=Dbus',    // 禁用 dbus
             '--user-data-dir=' . $userDataDir,
             '--print-to-pdf=' . $tmpPdf,
             '--print-to-pdf-no-header',