Ken 5 giorni fa
parent
commit
2349614753
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  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. 输出图片路径 =========