Browse Source

fix: 修复选项正则误匹配SVG注释内容,移除调试代码

过卫栋 5 days ago
parent
commit
7920bda330
1 changed files with 0 additions and 11 deletions
  1. 0 11
      app/Services/ExamPdfExportService.php

+ 0 - 11
app/Services/ExamPdfExportService.php

@@ -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) {