Ken hace 1 día
padre
commit
093356e1b4
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      app/Services/LotteryImageService.php

+ 2 - 1
app/Services/LotteryImageService.php

@@ -21,9 +21,10 @@ class LotteryImageService
 
         // ========= 2. 保存HTML到临时文件 =========
 
+//        $htmlPath = storage_path("app/lottery_temp.html");
         $group_language = Config::where('field', 'group_language')->first()->val;
+        $htmlPath = base_path()."/public/static/html/lottery_temp_{$group_language}.html";
 
-        $htmlPath = storage_path("app/lottery_temp_{$group_language}.html");
 
         file_put_contents($htmlPath, $html);