Ken há 1 dia atrás
pai
commit
3908597d31
4 ficheiros alterados com 24 adições e 13 exclusões
  1. 19 12
      app/Services/BetService.php
  2. 1 0
      lang/en/messages.php
  3. 2 0
      lang/vi/messages.php
  4. 2 1
      lang/zh/messages.php

+ 19 - 12
app/Services/BetService.php

@@ -953,9 +953,12 @@ class BetService extends BaseService
         // shuffle($openList);
         // Log::error('lotteryNotice openList', $openList);
 
-
-        $text = "{$issue_no}期开奖结果";
-        $text .= "\n-----本期开奖账单----- \n";
+        $lang = App::getLocale();
+        $group_language = Config::where('field', 'group_language')->first()->val;
+        App::setLocale($group_language);
+        $text = "{$issue_no}" . lang("期开奖结果");
+        $text .= "\n-----" . lang("本期开奖账单") . "----- \n";
+        App::setLocale($lang);
         foreach ($openList as $k => $v) {
 
 
@@ -971,14 +974,18 @@ class BetService extends BaseService
             }
 
             if (($k + 1) <= $noticeNum) {
-                $text .= "用户ID:{$v['lastStr']} \n";
-                $text .= "下注类型:[" . implode(',', $v['keywords']) . "] \n";
-                $text .= "中奖类型:[" . $openKeyword . "] \n";
-                $text .= "投注金额:{$amount} \n";
-                $text .= "中奖金额:{$v['win_amount']} \n";
-                $text .= "派彩金额:{$profit} \n";
-                $text .= "盈亏金额:{$yl} \n";
+                $lang = App::getLocale();
+                $group_language = Config::where('field', 'group_language')->first()->val;
+                App::setLocale($group_language);
+                $text .= lang("用户ID").":{$v['lastStr']} \n";
+                $text .= lang("下注类型").":[" . implode(',', $v['keywords']) . "] \n";
+                $text .= lang('中奖类型').":[" . $openKeyword . "] \n";
+                $text .= lang('投注金额').":{$amount} \n";
+                $text .= lang('中奖金额').":{$v['win_amount']} \n";
+                $text .= lang('派彩金额').":{$profit} \n";
+                $text .= lang("盈亏金额").":{$yl} \n";
                 $text .= "-------------------------------- \n";
+                App::setLocale($lang);
             }
 
             if ($v['is_send']) {
@@ -1043,8 +1050,8 @@ class BetService extends BaseService
         $lang = App::getLocale();
         $group_language = Config::where('field', 'group_language')->first()->val;
         App::setLocale($group_language);
-        $text3 = "📝 {$issue_no}".lang('期投注统计')." \n";
-        $text3 .= lang("玩法")."    ".lang("总投")." \n";
+        $text3 = "📝 {$issue_no}" . lang('期投注统计') . " \n";
+        $text3 .= lang("玩法") . "    " . lang("总投") . " \n";
 
         if ($keywordsList) {
             ksort($keywordsList);

+ 1 - 0
lang/en/messages.php

@@ -297,6 +297,7 @@ return [
     "已切换为加拿大PC28" => "Switched to Canadian PC28",
     "期投注统计" => "Issue Betting Statistics",
     "总投" => "Total Bet",
+    "期开奖结果" => "Result of the Draw",
 
 
 ];

+ 2 - 0
lang/vi/messages.php

@@ -297,6 +297,8 @@ return [
     "已切换为加拿大PC28" => "Đã chuyển sang Canadian PC28",
     "期投注统计" => "Thống kê cược kỳ",
     "总投" => "Tổng cược",
+    "期开奖结果" => "Kết quả quay số",
+
 
 
 

+ 2 - 1
lang/zh/messages.php

@@ -296,6 +296,7 @@ return [
     "已切换为极速PC28" => "已切换为极速PC28",
     "已切换为加拿大PC28" => "已切换为加拿大PC28",
     "期投注统计" => "期投注统计",
-    "总投"=>"总投",
+    "总投" => "总投",
+    "期开奖结果" => "期开奖结果",
 
 ];