|
|
@@ -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();
|