|
|
@@ -1032,12 +1032,6 @@ class ExamPdfExportService
|
|
|
|
|
|
// 仅使用Chrome渲染
|
|
|
$chromePdf = $this->renderWithChrome($tmpHtml);
|
|
|
-
|
|
|
- // [DEBUG] 保存 HTML 副本用于调试
|
|
|
- $debugHtmlPath = storage_path('app/debug_exam_html_' . date('YmdHis') . '.html');
|
|
|
- @copy($tmpHtml, $debugHtmlPath);
|
|
|
- Log::warning('ExamPdfExportService: [DEBUG] HTML副本已保存', ['path' => $debugHtmlPath]);
|
|
|
-
|
|
|
@unlink($tmpHtml);
|
|
|
return $chromePdf;
|
|
|
}
|
|
|
@@ -2150,11 +2144,6 @@ class ExamPdfExportService
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
- // [DEBUG] 保存渲染后的 HTML 用于调试
|
|
|
- $debugPath = storage_path('app/debug_render_' . date('YmdHis') . '_' . ($grading ? 'grading' : 'exam') . '.html');
|
|
|
- file_put_contents($debugPath, $html);
|
|
|
- Log::warning('renderCustomExamHtml: [DEBUG] HTML已保存', ['path' => $debugPath, 'length' => strlen($html)]);
|
|
|
-
|
|
|
return $this->ensureUtf8Html($html);
|
|
|
|
|
|
} catch (\Exception $e) {
|