Ken 2 weeks ago
parent
commit
00d957eb4f
4 changed files with 38 additions and 9 deletions
  1. 8 8
      app/Services/TopUpService.php
  2. 12 1
      lang/en/messages.php
  3. 11 0
      lang/vi/messages.php
  4. 7 0
      lang/zh/messages.php

+ 8 - 8
app/Services/TopUpService.php

@@ -136,7 +136,7 @@ class TopUpService
         Cache::delete("{$chatId}_TOP_UP_TYPE");
         return [
             'chat_id' => $chatId,
-            'text' => '已提交充值凭证,请等待系统审核完成'
+            'text' => lang('已提交充值凭证,请等待系统审核完成')
         ];
     }
 
@@ -146,7 +146,7 @@ class TopUpService
         if (!preg_match('/^\d+(\.\d+)?$/', $amount)) {
             return [
                 'chat_id' => $chatId,
-                'text' => "金额输入不正确,请发送充值数字",
+                'text' => lang("金额输入不正确,请发送充值数字"),
                 'reply_to_message_id' => $messageId
             ];
         }
@@ -154,7 +154,7 @@ class TopUpService
         Cache::put(get_step_key($chatId), StepStatus::INPUT_TOP_UP_IMAGE);
         return [
             'chat_id' => $chatId,
-            'text' => "请发送您的充值凭证截图,方便系统验证",
+            'text' => lang("请发送您的充值凭证截图,方便系统验证"),
         ];
     }
 
@@ -164,7 +164,7 @@ class TopUpService
         Cache::put(get_step_key($chatId), StepStatus::INPUT_TOP_UP_MONEY);
         return [
             'chat_id' => $chatId,
-            'text' => '请输入充值金额'
+            'text' => lang("请输入充值金额")
         ];
     }
 
@@ -173,11 +173,11 @@ class TopUpService
     {
         RechargeService::syncUsdtRechargeRecords($chatId);
         $keyboard = [
-            [['text' => "🔙返回", 'callback_data' => "topUp@@home"]]
+            [['text' => lang("↩️返回"), 'callback_data' => "topUp@@home"]]
         ];
         return [
             'chat_id' => $chatId,
-            'text' => '请耐心等待,充值成功后 Bot 会通知您!',
+            'text' => lang("请耐心等待,充值成功后 Bot 会通知您!"),
             'reply_markup' => json_encode(['inline_keyboard' => $keyboard]),
         ];
     }
@@ -190,11 +190,11 @@ class TopUpService
                 ['text' => 'ERC20', 'callback_data' => 'topUp@@ERC20']
             ],
             [
-                ['text' => "🔙返回", 'callback_data' => "topUp@@home"],
+                ['text' => lang("↩️返回"), 'callback_data' => "topUp@@home"],
             ]
         ];
 
-        $text = '请选择网络类型';
+        $text = lang("请选择网络类型");
         return [
             'chat_id' => $chatId,
             'text' => $text,

+ 12 - 1
lang/en/messages.php

@@ -195,7 +195,7 @@ return [
     "⚠️提示:请务必确认提现地址正确无误,\n否则资金丢失将无法找回请自负!" => "⚠️ Warning: Please make sure the withdrawal address is correct, \notherwise lost funds cannot be recovered, you are responsible!",
     '👩 客服帮助' => '👩 Customer Support Help',
     '你好,请选择功能菜单' => 'Hello, please select a function menu',
-    "您好,请选择功能菜单"=>"Hello, please select a function menu",
+    "您好,请选择功能菜单" => "Hello, please select a function menu",
     '近期注单' => 'Recent Bets',
     '今日流水' => "Today's Transactions",
     '流水列表' => 'Transaction List',
@@ -212,6 +212,17 @@ return [
     "💰查看余额" => "💰 View Balance",
     "投注大群" => "Betting Group",
     "选择语言" => "Select Language",
+    "钱包充值记录" => "Wallet Top-up History",
+    "人工充值" => "Manual Top-up",
+    "人工扣款" => "Manual Deduction",
+    "三方提现" => "Third-party Withdrawal",
+    "资产转移" => "Asset Transfer",
+    "已提交充值凭证,请等待系统审核完成" => "Top-up proof submitted, please wait for the system review to complete",
+    "金额输入不正确,请发送充值数字" => "Incorrect amount entered, please send the top-up amount",
+    "请发送您的充值凭证截图,方便系统验证" => "Please send your top-up proof screenshot for system verification",
+    "请输入充值金额" => "Please enter the top-up amount",
+    "请耐心等待,充值成功后 Bot 会通知您!" => "Please be patient, the bot will notify you once the top-up is successful!",
+    "请选择网络类型" => "Please select the network type"
 
 
 ];

+ 11 - 0
lang/vi/messages.php

@@ -212,6 +212,17 @@ return [
     "💰查看余额" => "💰 Xem số dư",
     "投注大群" => "Nhóm cược lớn",
     "选择语言" => "Chọn ngôn ngữ",
+    "钱包充值记录" => "Lịch sử nạp tiền vào ví",
+    "人工充值" => "Nạp tiền thủ công",
+    "人工扣款" => "Khấu trừ thủ công",
+    "三方提现" => "Rút tiền qua bên thứ ba",
+    "资产转移" => "Chuyển tài sản",
+    "已提交充值凭证,请等待系统审核完成" => "Đã gửi chứng từ nạp tiền, vui lòng chờ hệ thống kiểm tra hoàn tất",
+    "金额输入不正确,请发送充值数字" => "Số tiền nhập không chính xác, vui lòng gửi số tiền nạp",
+    "请发送您的充值凭证截图,方便系统验证" => "Vui lòng gửi ảnh chụp chứng từ nạp tiền của bạn để hệ thống xác minh",
+    "请输入充值金额" => "Vui lòng nhập số tiền nạp",
+    "请耐心等待,充值成功后 Bot 会通知您!" => "Vui lòng kiên nhẫn, Bot sẽ thông báo cho bạn khi nạp tiền thành công!",
+    "请选择网络类型" => "Vui lòng chọn loại mạng"
 
 
 

+ 7 - 0
lang/zh/messages.php

@@ -217,6 +217,13 @@ return [
     "人工扣款" => "人工扣款",
     "三方提现" => "三方提现",
     "资产转移" => "资产转移",
+    "已提交充值凭证,请等待系统审核完成"=>"已提交充值凭证,请等待系统审核完成",
+    "金额输入不正确,请发送充值数字"=>"金额输入不正确,请发送充值数字",
+    "请发送您的充值凭证截图,方便系统验证"=>"请发送您的充值凭证截图,方便系统验证",
+    "请输入充值金额"=>"请输入充值金额",
+    "请耐心等待,充值成功后 Bot 会通知您!"=>"请耐心等待,充值成功后 Bot 会通知您!",
+    "请选择网络类型"=>"请选择网络类型",
+
 
 
 ];