Ken před 5 dny
rodič
revize
2349614753
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      app/Services/LotteryImageService.php

+ 3 - 3
app/Services/LotteryImageService.php

@@ -20,9 +20,9 @@ class LotteryImageService
         // ========= 1. 生成HTML内容 =========
         $html = $this->buildHtml($records);
         // ========= 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.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";
         file_put_contents($htmlPath, $html);
 
         // ========= 3. 输出图片路径 =========