Ken 5 dienas atpakaļ
vecāks
revīzija
2349614753
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      app/Services/LotteryImageService.php

+ 3 - 3
app/Services/LotteryImageService.php

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