Ken 2 weeks ago
parent
commit
db87fc7322
4 changed files with 51 additions and 26 deletions
  1. 15 15
      app/Services/TopUpService.php
  2. 10 1
      lang/en/messages.php
  3. 11 4
      lang/vi/messages.php
  4. 15 6
      lang/zh/messages.php

+ 15 - 15
app/Services/TopUpService.php

@@ -236,29 +236,29 @@ class TopUpService
         if ($replyInfo) {
             $caption .= "{$replyInfo->reply}\n\n";
         } else {
-            $caption .= "支持货币({$res['net']}):{$res['coin']}\n";
-            $caption .= "专属收款地址:\n";
+            $caption .= lang("支持货币") . "({$res['net']}):{$res['coin']}\n";
+            $caption .= lang('专属收款地址') . ":\n";
             $caption .= "{$address}\n";
             $caption .= "\n";
-            $caption .= "⚠️提示:\n";
-            $caption .= "- 如果上面地址和二维码不一致,请不要付款!\n";
-            $caption .= "- 对上述地址充值后, 请点击我已付款!\n";
-            $caption .= "- 请耐心等待, 充值成功后 Bot 会通知您!\n";
+            $caption .= lang("⚠️提示") . ":\n";
+            $caption .= lang("- 如果上面地址和二维码不一致,请不要付款!") . "\n";
+            $caption .= lang("- 对上述地址充值后, 请点击我已付款!") . "\n";
+            $caption .= lang("- 请耐心等待, 充值成功后 Bot 会通知您!") . "\n";
         }
 
 
         $keyboard = [
             [
-                ['text' => '📋 复制地址', 'copy_text' => ['text' => $address]],
-                ['text' => '✅ 我已付款', 'callback_data' => 'topUp@@pay']
+                ['text' => lang('📋 复制地址'), 'copy_text' => ['text' => $address]],
+                ['text' => lang('✅ 我已付款'), 'callback_data' => 'topUp@@pay']
             ],
             [
-                ['text' => "🔙返回", 'callback_data' => "topUp@@home1"],
+                ['text' => lang("↩️返回"), 'callback_data' => "topUp@@home1"],
             ]
         ];
         //手动
         if ($receivingType != 1) {
-            $keyboard[0][1] = ['text' => '✅ 我已付款', 'callback_data' => 'topUp@@pay2'];
+            $keyboard[0][1] = ['text' => lang('✅ 我已付款'), 'callback_data' => 'topUp@@pay2'];
         }
 
 
@@ -278,18 +278,18 @@ class TopUpService
     {
         $wallet = Wallet::where('member_id', $chatId)->first();
         $text = "👤 {$firstName}($chatId)\n";
-        $text .= "💰钱包余额\n";
+        $text .=lang("💰钱包余额"). "\n";
         $temp = floatval($wallet->available_balance);
         $text .= "USDT:{$temp}\n";
         $serviceAccount = Config::where('field', 'service_account')->first()->val;
         $keyboard = [
             [
-                ['text' => '➕充值', 'callback_data' => "topup@@topup"],
-                ['text' => '🧾账单', 'callback_data' => "topup@@bill"],
+                ['text' => lang('➕充值'), 'callback_data' => "topup@@topup"],
+                ['text' => lang('🧾账单'), 'callback_data' => "topup@@bill"],
             ],
             [
-                ['text' => '👩 客服帮助', 'url' => "https://t.me/{$serviceAccount}"],
-                ['text' => '❌取消', 'callback_data' => "message@@close"],
+                ['text' => lang('👩 客服帮助'), 'url' => "https://t.me/{$serviceAccount}"],
+                ['text' => lang('❌取消'), 'callback_data' => "message@@close"],
             ]
         ];
         return [

+ 10 - 1
lang/en/messages.php

@@ -222,7 +222,16 @@ return [
     "请发送您的充值凭证截图,方便系统验证" => "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"
+    "请选择网络类型" => "Please select the network type",
+    "支持货币" => "Supported Currencies",
+    "专属收款地址" => "Exclusive Payment Address",
+    "⚠️提示" => "⚠️Reminder",
+    "- 如果上面地址和二维码不一致,请不要付款!" => "- If the address and QR code above do not match, please do not make the payment!",
+    "- 对上述地址充值后, 请点击我已付款!" => "- After topping up to the above address, please click 'I have paid!'",
+    "- 请耐心等待, 充值成功后 Bot 会通知您!" => "- Please be patient, the bot will notify you once the top-up is successful!",
+    '📋 复制地址' => '📋 Copy Address',
+    '✅ 我已付款' => '✅ I have paid',
+    "💰钱包余额" => "💰 Wallet Balance",
 
 
 ];

+ 11 - 4
lang/vi/messages.php

@@ -195,7 +195,7 @@ return [
     "⚠️提示:请务必确认提现地址正确无误,\n否则资金丢失将无法找回请自负!" => "⚠️ Lưu ý: Vui lòng chắc chắn rằng địa chỉ rút tiền chính xác, \n nếu không, tiền sẽ bị mất và không thể khôi phục, bạn sẽ tự chịu trách nhiệm!",
     '👩 客服帮助' => '👩 Hỗ trợ khách hàng',
     '你好,请选择功能菜单' => 'Xin chào, vui lòng chọn menu chức năng',
-    "您好,请选择功能菜单"=>"Xin chào, vui lòng chọn menu chức năng",
+    "您好,请选择功能菜单" => "Xin chào, vui lòng chọn menu chức năng",
     '近期注单' => 'Đơn đặt cược gần đây',
     '今日流水' => 'Dòng tiền hôm nay',
     '流水列表' => 'Danh sách giao dịch',
@@ -222,9 +222,16 @@ return [
     "请发送您的充值凭证截图,方便系统验证" => "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"
-
-
+    "请选择网络类型" => "Vui lòng chọn loại mạng",
+    "支持货币" => "Tiền tệ hỗ trợ",
+    "专属收款地址" => "Địa chỉ nhận tiền riêng",
+    "⚠️提示" => "⚠️Thông báo",
+    "- 如果上面地址和二维码不一致,请不要付款!" => "- Nếu địa chỉ và mã QR trên không khớp, vui lòng không thanh toán!",
+    "- 对上述地址充值后, 请点击我已付款!" => "- Sau khi nạp tiền vào địa chỉ trên, vui lòng nhấn Tôi đã thanh toán!",
+    "- 请耐心等待, 充值成功后 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!",
+    '📋 复制地址' => '📋 Sao chép địa chỉ',
+    '✅ 我已付款' => '✅ Tôi đã thanh toán',
+    "💰钱包余额" => "💰 Số dư ví"
 
 
 ];

+ 15 - 6
lang/zh/messages.php

@@ -217,12 +217,21 @@ return [
     "人工扣款" => "人工扣款",
     "三方提现" => "三方提现",
     "资产转移" => "资产转移",
-    "已提交充值凭证,请等待系统审核完成"=>"已提交充值凭证,请等待系统审核完成",
-    "金额输入不正确,请发送充值数字"=>"金额输入不正确,请发送充值数字",
-    "请发送您的充值凭证截图,方便系统验证"=>"请发送您的充值凭证截图,方便系统验证",
-    "请输入充值金额"=>"请输入充值金额",
-    "请耐心等待,充值成功后 Bot 会通知您!"=>"请耐心等待,充值成功后 Bot 会通知您!",
-    "请选择网络类型"=>"请选择网络类型",
+    "已提交充值凭证,请等待系统审核完成" => "已提交充值凭证,请等待系统审核完成",
+    "金额输入不正确,请发送充值数字" => "金额输入不正确,请发送充值数字",
+    "请发送您的充值凭证截图,方便系统验证" => "请发送您的充值凭证截图,方便系统验证",
+    "请输入充值金额" => "请输入充值金额",
+    "请耐心等待,充值成功后 Bot 会通知您!" => "请耐心等待,充值成功后 Bot 会通知您!",
+    "请选择网络类型" => "请选择网络类型",
+    "支持货币" => "支持货币",
+    "专属收款地址" => "专属收款地址",
+    "⚠️提示" => "⚠️提示",
+    "- 如果上面地址和二维码不一致,请不要付款!" => "- 如果上面地址和二维码不一致,请不要付款!",
+    "- 对上述地址充值后, 请点击我已付款!" => "- 对上述地址充值后, 请点击我已付款!",
+    "- 请耐心等待, 充值成功后 Bot 会通知您!" => "- 请耐心等待, 充值成功后 Bot 会通知您!",
+    '📋 复制地址' => '📋 复制地址',
+    '✅ 我已付款'=>'✅ 我已付款',
+    "💰钱包余额"=>"💰钱包余额",