Ken 5 days ago
parent
commit
087a92e838
4 changed files with 9 additions and 7 deletions
  1. 6 6
      app/Services/LotteryImageService.php
  2. 1 0
      lang/en/messages.php
  3. 1 1
      lang/vi/messages.php
  4. 1 0
      lang/zh/messages.php

+ 6 - 6
app/Services/LotteryImageService.php

@@ -55,11 +55,14 @@ class LotteryImageService
      */
     protected function buildHtml($records): string
     {
-
+        $time = now()->format('Y-m-d H:i:s');
+        $lang = App::getLocale();
+        $group_language = Config::where('field', 'group_language')->first()->val;
+        App::setLocale($group_language);
         $rows = '';
         foreach ($records as $row) {
             $rows .= '<tr>';
-            $rows .= '<td>' . htmlspecialchars($row['issue_no']) . '</td>';
+            $rows .= '<td>' . htmlspecialchars($row['issue_no']) ." ". lang("期").'</td>';
             $rows .= '<td>';
             foreach ($row['winning_numbers'] as $i => $num) {
                 $color = match ($i) {
@@ -78,10 +81,7 @@ class LotteryImageService
             $rows .= '</tr>';
         }
 
-        $time = now()->format('Y-m-d H:i:s');
-        $lang = App::getLocale();
-        $group_language = Config::where('field', 'group_language')->first()->val;
-        App::setLocale($group_language);
+
         $Canada28LotteryResults = lang("加拿大28开奖记录");
         $recentLotteryResults = lang("最近开奖记录");
         $th1 = lang("回合");

+ 1 - 0
lang/en/messages.php

@@ -308,5 +308,6 @@ return [
     "尾数" => "Last digit",
     "生成时间" => "Created time",
     "数据仅供参考" => "Data for reference only",
+    "期"=>"Issue",
 
     ];

+ 1 - 1
lang/vi/messages.php

@@ -308,7 +308,7 @@ return [
     "尾数" => "Chữ số cuối cùng",
     "生成时间" => "Thời gian tạo",
     "数据仅供参考" => "Dữ liệu chỉ để tham khảo",
-
+    "期"=>"Số",
 
 
 ];

+ 1 - 0
lang/zh/messages.php

@@ -308,5 +308,6 @@ return [
     "尾数" => "尾数",
     "生成时间" => "生成时间",
     "数据仅供参考" => "数据仅供参考",
+    "期"=>"期",
 
 ];