|
|
@@ -2150,6 +2150,11 @@ 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) {
|