Ken 1 napja
szülő
commit
0efc65282c

+ 0 - 10
app/Services/BaseService.php

@@ -387,16 +387,6 @@ class BaseService
                         $btn['callback_data'] = $button['url'];
                     }
                     $inlineButton[count($inlineButton) - 1][] = $btn;
-                    // if (isset($button['text'])) {
-                    //     $btn = ['text' => $button['text']];
-                    //     if (isset($button['callback_data'])) {
-                    //         $btn['callback_data'] = $button['callback_data'];
-                    //     }
-                    //     if (isset($button['url'])) {
-                    //         $btn['url'] = $button['url'];
-                    //     }
-                    //     $inlineButton[count($inlineButton) - 1][] = $btn;
-                    // }
                 }
             }
             $inlineButton = array_values($inlineButton);

+ 7 - 6
app/Services/BetService.php

@@ -1040,20 +1040,21 @@ class BetService extends BaseService
                 $keywordsList[$v['keywords']] = $v['amount'];
             }
         }
-
-        $text3 = "📝 {$issue_no}期投注统计 \n";
-        $text3 .= "玩法    总投 \n";
+        $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";
 
         if ($keywordsList) {
             ksort($keywordsList);
             foreach ($keywordsList as $k => $v) {
                 $text3 .= "{$k}    {$v} \n";
-                // $text3 .= "玩法:{$k} \n";
-                // $text3 .= "总注:{$v} \n";
-                // $text3 .= "-------------- \n";
             }
         }
+        App::setLocale($lang);
         $inlineButton = self::getOperateButton();
+
         SendTelegramGroupMessageJob::dispatch($text3, $inlineButton, '');
     }
 

+ 5 - 7
lang/en/messages.php

@@ -290,15 +290,13 @@ return [
     "新用户信息" => "New User Information",
     "管理员已将指定账户转移至您的账户" => "The administrator has transferred the specified account to your account",
     "原账户信息" => "Original Account Information",
-    "比比返失败"=>"The water injection for the DSLR failed",
-    "系统维护中"=>"Under system maintenance",
-    '✅唯一财务'=>'✅Sole finance',
+    "比比返失败" => "The water injection for the DSLR failed",
+    "系统维护中" => "Under system maintenance",
+    '✅唯一财务' => '✅Sole finance',
     "已切换为极速PC28" => "Switched to Speedy PC28",
     "已切换为加拿大PC28" => "Switched to Canadian PC28",
-    
-
-
-
+    "期投注统计" => "Issue Betting Statistics",
+    "总投" => "Total Bet",
 
 
 ];

+ 4 - 0
lang/vi/messages.php

@@ -295,6 +295,10 @@ return [
     '✅唯一财务'=>'✅Tài chính duy nhất',
     "已切换为极速PC28" => "Đã chuyển sang Speedy PC28",
     "已切换为加拿大PC28" => "Đã chuyển sang Canadian PC28",
+    "期投注统计" => "Thống kê cược kỳ",
+    "总投" => "Tổng cược",
+
+
 
 
 

+ 3 - 1
lang/zh/messages.php

@@ -294,6 +294,8 @@ return [
     "系统维护中" => "系统维护中",
     '✅唯一财务' => '✅唯一财务',
     "已切换为极速PC28" => "已切换为极速PC28",
-    "已切换为加拿大PC28"=>"已切换为加拿大PC28",
+    "已切换为加拿大PC28" => "已切换为加拿大PC28",
+    "期投注统计" => "期投注统计",
+    "总投"=>"总投",
 
 ];