Ken 1 周之前
父节点
当前提交
5e54165be3
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      app/Services/LotteryImageService.php

+ 3 - 3
app/Services/LotteryImageService.php

@@ -24,8 +24,8 @@ class LotteryImageService
         $html = $this->buildHtml($records);
         App::setLocale($lang);
         // ========= 2. 保存HTML到临时文件 =========
-                $htmlPath = storage_path("app/lottery_temp.html");
-//        $group_language = Config::where('field', 'group_language')->first()->val;
+//        $htmlPath = storage_path("app/lottery_temp.html");
+        $htmlPath = base_path() . "/public/static/html/lottery_temp.html";
 //        $htmlPath = base_path() . "/public/static/html/lottery_temp_{$group_language}.html";
         file_put_contents($htmlPath, $html);
 
@@ -64,7 +64,7 @@ class LotteryImageService
         $rows = '';
         foreach ($records as $row) {
             $rows .= '<tr>';
-            $rows .= '<td>' . htmlspecialchars($row['issue_no']) ." ". lang("期").'</td>';
+            $rows .= '<td>' . htmlspecialchars($row['issue_no']) . " " . lang("期") . '</td>';
             $rows .= '<td>';
             foreach ($row['winning_numbers'] as $i => $num) {
                 $color = match ($i) {