Ken há 2 semanas atrás
pai
commit
c5fe3131fe
4 ficheiros alterados com 31 adições e 18 exclusões
  1. 12 12
      app/Services/WithdrawService.php
  2. 6 6
      lang/en/messages.php
  3. 6 0
      lang/vi/messages.php
  4. 7 0
      lang/zh/messages.php

+ 12 - 12
app/Services/WithdrawService.php

@@ -267,13 +267,13 @@ class WithdrawService
         $user->save();
         $wallet = Wallet::where('member_id', $chatId)->first();
         $temp = floatval($wallet->available_balance);
-        $text = "✅ ".lang('提现地址已设置')."\n\n";
-        $text .= lang("请发送提现金额")."\n";
-        $text .= "💰 ".lang("当前可用USDT余额").":{$temp}\n";
-        $text .= "⚠️ ".lang('提现将收取')."{$this->serviceCharge}".lang("U作为手续费")."\n";
+        $text = "✅ " . lang('提现地址已设置') . "\n\n";
+        $text .= lang("请发送提现金额") . "\n";
+        $text .= "💰 " . lang("当前可用USDT余额") . ":{$temp}\n";
+        $text .= "⚠️ " . lang('提现将收取') . "{$this->serviceCharge}" . lang("U作为手续费") . "\n";
         $text .= "------------------------------------\n";
-        $text .= lang("例如您要提现100 USDT")."\n";
-        $text .= lang("那么请发送:【提现】100")."\n";
+        $text .= lang("例如您要提现100 USDT") . "\n";
+        $text .= lang("那么请发送:【提现】100") . "\n";
         return [['chat_id' => $chatId, 'text' => $text]];
     }
 
@@ -290,7 +290,7 @@ class WithdrawService
         if ($amount <= $serviceCharge) {
             return [
                 'chat_id' => $chatId,
-                'text' => "⚠️提现不能少于{$serviceCharge} USDT,请重试",
+                'text' => lang("⚠️提现不能少于") . "{$serviceCharge} USDT," . lang("请重试"),
                 'message_id' => $messageId
             ];
         }
@@ -305,7 +305,7 @@ class WithdrawService
         if ($amount > $rate_usdt_amount) {
             return [
                 'chat_id' => $chatId,
-                'text' => "⚠️可用余额不足,请重试",
+                'text' => lang("⚠️可用余额不足,请重试"),
                 'message_id' => $messageId
             ];
         }
@@ -315,14 +315,14 @@ class WithdrawService
             ->whereIn('status', [0, 1, 2, 3])
             ->first();
         if ($ru) {
-            $text = "游戏未结算\n";
-            $text .= "⚠️ 您还有进行中的游戏,所有游戏结算后方可提现\n";
+            $text = lang("游戏未结算") . "\n";
+            $text .= "⚠️ " . lang("您还有进行中的游戏,所有游戏结算后方可提现") . "\n";
             return [
                 'chat_id' => $chatId,
                 'text' => $text,
                 'message_id' => $messageId,
                 'reply_markup' => json_encode(['inline_keyboard' => [[
-                    ['text' => '进入房间', 'callback_data' => "games@@home{$ru->room_id}"],
+                    ['text' => lang('进入房间'), 'callback_data' => "games@@home{$ru->room_id}"],
                 ]]])
             ];
         }
@@ -337,7 +337,7 @@ class WithdrawService
         $wallet->available_balance = bcsub($wallet->available_balance, $rate_rmb_amount, 10);
         $wallet->save();
         $bl->after_balance = $wallet->available_balance;
-        $bl->change_type = '提现';
+        $bl->change_type = lang('提现');
 
 
         $withdraw = new Withdraw();

+ 6 - 6
lang/en/messages.php

@@ -173,12 +173,12 @@ return [
     "U作为手续费" => "U as the transaction fee",
     "例如您要提现100 USDT" => "For example, if you want to withdraw 100 USDT",
     "那么请发送:【提现】100" => "Then please send: 【Withdraw】100",
-
-
-
-
-
-
+    "⚠️提现不能少于" => "⚠️ Withdrawal cannot be less than",
+    "请重试" => "Please try again",
+    "⚠️可用余额不足,请重试" => "⚠️ Insufficient available balance, please try again",
+    "游戏未结算" => "Game not settled",
+    "您还有进行中的游戏,所有游戏结算后方可提现" => "You have ongoing games. Withdrawal can only be made after all games are settled",
+    '进入房间' => 'Enter Room',
 
 
 ];

+ 6 - 0
lang/vi/messages.php

@@ -173,6 +173,12 @@ return [
     "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",
+    "⚠️提现不能少于" => "⚠️ Rút tiền không thể ít hơn",
+    "请重试" => "Vui lòng thử lại",
+    "⚠️可用余额不足,请重试" => "⚠️ Số dư khả dụng không đủ, vui lòng thử lại",
+    "游戏未结算" => "Trò chơi chưa được thanh toán",
+    "您还有进行中的游戏,所有游戏结算后方可提现" => "Bạn còn trò chơi đang chơi, chỉ có thể rút tiền sau khi tất cả trò chơi được thanh toán",
+    '进入房间' => 'Vào phòng',
 
 
 

+ 7 - 0
lang/zh/messages.php

@@ -173,6 +173,13 @@ return [
     "U作为手续费" => "U作为手续费",
     "例如您要提现100 USDT" => "例如您要提现100 USDT",
     "那么请发送:【提现】100" => "那么请发送:【提现】100",
+    "⚠️提现不能少于" => "⚠️提现不能少于",
+    "请重试" => "请重试",
+    "⚠️可用余额不足,请重试"=>"⚠️可用余额不足,请重试",
+    "游戏未结算"=>"游戏未结算",
+    "您还有进行中的游戏,所有游戏结算后方可提现"=>"您还有进行中的游戏,所有游戏结算后方可提现",
+    '进入房间'=>'进入房间',
+
 
 
 ];