seven 2 週間 前
コミット
a5464a4883
4 ファイル変更28 行追加7 行削除
  1. 7 7
      app/Services/BetService.php
  2. 7 0
      lang/en/messages.php
  3. 7 0
      lang/vi/messages.php
  4. 7 0
      lang/zh/messages.php

+ 7 - 7
app/Services/BetService.php

@@ -477,22 +477,22 @@ class BetService extends BaseService
         }
 
         if ($issue_no) {
-            $text = "期数{$issue_no} \n";
+            $text = lang("期数")." {$issue_no} \n";
             // $text .= "\n";
             // $text .= "----------\n";
             $list = self::findAll(['member_id' => $memberId, 'issue_no' => $issue_no]);
             $list = $list->toArray();
             if (empty($list)) {
-                $text .= "本期暂未下注! \n";
+                $text .= lang("本期暂未下注")."! \n";
             } else {
                 $keywords = implode(',', array_column($list, 'keywords'));
                 $amounts = implode(',', array_column($list, 'amount'));
 
 
-                $text .= "下注类型:[" . $keywords . "] \n";
-                $text .= "下注金额:" . $amounts . " \n";
-                $text .= "下注总额:" . array_sum(array_column($list, 'amount')) . " \n";
-                $text .= "开奖状态:等待开奖 \n";
+                $text .= lang("下注类型").":[" . $keywords . "] \n";
+                $text .= lang("下注金额").":" . $amounts . " \n";
+                $text .= lang("下注总额").":" . array_sum(array_column($list, 'amount')) . " \n";
+                $text .= lang("开奖状态")."".lang("等待开奖")." \n";
             }
             // foreach ($list->toArray() as $k => $v) {
             //     $text .= "{$v['keywords']}{$v['amount']} \n";
@@ -502,7 +502,7 @@ class BetService extends BaseService
             // $text .= "----------\n";
             $msg['text'] = $text;
         } else {
-            $msg['text'] = "当前没有开放的投注期数! \n";
+            $msg['text'] = lang("当前没有开放的投注期数")."! \n";
         }
 
         return $msg;

+ 7 - 0
lang/en/messages.php

@@ -250,4 +250,11 @@ return [
     "返水" => "Return water",
     "盈利" => "Profit",
     "暂无开奖记录" => "No lottery records available at the moment",
+    "本期暂未下注" => "No bets have been placed for this period yet",
+    "当前没有开放的投注期数" => "There are currently no open betting periods",
+    "下注类型" => "Bet type",
+    "下注金额" => "Bet amount",
+    "下注总额" => "Total betting amount",
+    "开奖状态" => "Winning status",
+    "等待开奖" => "Waiting for the lottery draw",
 ];

+ 7 - 0
lang/vi/messages.php

@@ -250,5 +250,12 @@ return [
     "返水" => "Trở lại nước",
     "盈利" => "Lợi nhuận",
     "暂无开奖记录" => "Không có kỷ lục mở thưởng",
+    "本期暂未下注" => "Không đặt cược trong kỳ này",
+    "当前没有开放的投注期数" => "Hiện tại không có thời gian cá cược mở",
+    "下注类型" => "Các loại cược",
+    "下注金额" => "Số tiền đặt cược",
+    "下注总额" => "Tổng số cược",
+    "开奖状态" => "Trạng thái mở thưởng",
+    "等待开奖" => "Chờ giải thưởng",
 
 ];

+ 7 - 0
lang/zh/messages.php

@@ -250,6 +250,13 @@ return [
     "返水" => "返水",
     "盈利" => "盈利",
     "暂无开奖记录" => "暂无开奖记录",
+    "本期暂未下注" => "本期暂未下注",
+    "当前没有开放的投注期数" => "当前没有开放的投注期数",
+    "下注类型" => "下注类型",
+    "下注金额" => "下注金额",
+    "下注总额" => "下注总额",
+    "开奖状态" => "开奖状态",
+    "等待开奖" => "等待开奖",