Ken 2 weeks ago
parent
commit
85f761cf31
4 changed files with 35 additions and 10 deletions
  1. 9 9
      app/Services/WithdrawService.php
  2. 8 0
      lang/en/messages.php
  3. 8 0
      lang/vi/messages.php
  4. 10 1
      lang/zh/messages.php

+ 9 - 9
app/Services/WithdrawService.php

@@ -246,9 +246,9 @@ class WithdrawService
             $keyboard[] = [['text' => $item->alias, 'callback_data' => "withdrawAddress@@detail{$item->id}"]];
         }
         if (count($list) < 5) {
-            $keyboard[] = [['text' => "➕ 添加地址", 'callback_data' => "withdrawAddress@@add"]];
+            $keyboard[] = [['text' => lang("➕ 添加地址"), 'callback_data' => "withdrawAddress@@add"]];
         }
-        $keyboard[] = [['text' => "↩️返回", 'callback_data' => "withdraw@@home"]];
+        $keyboard[] = [['text' => lang("↩️返回"), 'callback_data' => "withdraw@@home"]];
         return [
             'chat_id' => $chatId,
             'text' => $text,
@@ -261,19 +261,19 @@ class WithdrawService
     public function setAddress($chatId, $address)
     {
         $address = trim($address);
-        if (!$address) return [['chat_id' => $chatId, 'text' => "提现地址不能为空"]];
+        if (!$address) return [['chat_id' => $chatId, 'text' => lang("提现地址不能为空")]];
         $user = User::where('member_id', $chatId)->first();
         $user->usdt = $address;
         $user->save();
         $wallet = Wallet::where('member_id', $chatId)->first();
         $temp = floatval($wallet->available_balance);
-        $text = "✅ 提现地址已设置\n\n";
-        $text .= "请发送提现金额\n";
-        $text .= "💰 当前可用USDT余额:{$temp}\n";
-        $text .= "⚠️ 提现将收取{$this->serviceCharge}U作为手续费\n";
+        $text = "✅ ".lang('提现地址已设置')."\n\n";
+        $text .= lang("请发送提现金额")."\n";
+        $text .= "💰 ".lang("当前可用USDT余额").":{$temp}\n";
+        $text .= "⚠️ ".lang('提现将收取')."{$this->serviceCharge}".lang("U作为手续费")."\n";
         $text .= "------------------------------------\n";
-        $text .= "例如您要提现100 USDT\n";
-        $text .= "那么请发送:【提现】100\n";
+        $text .= lang("例如您要提现100 USDT")."\n";
+        $text .= lang("那么请发送:【提现】100")."\n";
         return [['chat_id' => $chatId, 'text' => $text]];
     }
 

+ 8 - 0
lang/en/messages.php

@@ -165,6 +165,14 @@ return [
     "请输入地址别名,便于区分多个地址" => "Please enter an alias for the address to distinguish multiple addresses",
     '请输入新的TRC20地址' => 'Please enter a new TRC20 address',
     "🏠 地址管理" => '🏠 Address Management',
+    "➕ 添加地址" => "➕ Add Address",
+    "提现地址不能为空" => "Withdrawal address cannot be empty",
+    "提现地址已设置" => "Withdrawal address has been set",
+    "当前可用USDT余额" => "Current available USDT balance",
+    "提现将收取" => "A fee will be charged for withdrawal",
+    "U作为手续费" => "U as the transaction fee",
+    "例如您要提现100 USDT" => "For example, if you want to withdraw 100 USDT",
+    "那么请发送:【提现】100" => "Then please send: 【Withdraw】100",
 
 
 

+ 8 - 0
lang/vi/messages.php

@@ -165,6 +165,14 @@ return [
     "请输入地址别名,便于区分多个地址" => "Vui lòng nhập biệt danh địa chỉ để phân biệt các địa chỉ",
     '请输入新的TRC20地址' => 'Vui lòng nhập địa chỉ TRC20 mới',
     "🏠 地址管理" => '🏠 Quản lý địa chỉ',
+    "➕ 添加地址" => "➕ Thêm địa chỉ",
+    "提现地址不能为空" => "Địa chỉ rút tiền không thể để trống",
+    "提现地址已设置" => "Địa chỉ rút tiền đã được thiết lập",
+    "当前可用USDT余额" => "Số dư USDT khả dụng hiện tại",
+    "提现将收取" => "Phí rút tiền sẽ được tính",
+    "U作为手续费" => "U làm phí giao dịch",
+    "例如您要提现100 USDT" => "Ví dụ, bạn muốn rút 100 USDT",
+    "那么请发送:【提现】100" => "Vậy vui lòng gửi: 【Rút tiền】100",
 
 
 

+ 10 - 1
lang/zh/messages.php

@@ -164,6 +164,15 @@ return [
     "地址输入不正确,请重新输入TRC20地址" => "地址输入不正确,请重新输入TRC20地址",
     "请输入地址别名,便于区分多个地址" => "请输入地址别名,便于区分多个地址",
     '请输入新的TRC20地址' => '请输入新的TRC20地址',
-    "🏠 地址管理"=>'🏠 地址管理',
+    "🏠 地址管理" => '🏠 地址管理',
+    "➕ 添加地址" => "➕ 添加地址",
+    "提现地址不能为空" => "提现地址不能为空",
+    "提现地址已设置" => "提现地址已设置",
+    "当前可用USDT余额" => "当前可用USDT余额",
+    "提现将收取" => "提现将收取",
+    "U作为手续费" => "U作为手续费",
+    "例如您要提现100 USDT" => "例如您要提现100 USDT",
+    "那么请发送:【提现】100" => "那么请发送:【提现】100",
+
 
 ];