|
|
@@ -354,14 +354,14 @@ class WithdrawService
|
|
|
$bl->save();
|
|
|
|
|
|
$temp = floatval($wallet->available_balance);
|
|
|
- $text = "✅ 提现申请已提交!\n\n";
|
|
|
- $text .= "钱包余额:{$temp} RMB\n";
|
|
|
- $text .= "汇率:1 USDT = {$rate} RMB\n";
|
|
|
- $text .= "剩余可用USDT余额:" . number_format(bcdiv($temp, $rate, 2), 2) . " USDT\n";
|
|
|
- $text .= "提现金额:{$amount} USDT\n";
|
|
|
- $text .= "实际到账:{$real} USDT\n";
|
|
|
- $text .= "手续费:{$serviceCharge} USDT\n\n";
|
|
|
- $text .= "⌛️请等待系统处理, 到账时间可能需要几分钟!\n";
|
|
|
+ $text = "✅ " . lang("提现申请已提交!") . "\n\n";
|
|
|
+ $text .= lang("钱包余额") . ":{$temp} RMB\n";
|
|
|
+ $text .= lang("汇率") . ":1 USDT = {$rate} RMB\n";
|
|
|
+ $text .= lang("剩余可用USDT余额") . ":" . number_format(bcdiv($temp, $rate, 2), 2) . " USDT\n";
|
|
|
+ $text .= lang("提现金额") . ":{$amount} USDT\n";
|
|
|
+ $text .= lang("实际到账") . ":{$real} USDT\n";
|
|
|
+ $text .= lang("手续费") . ":{$serviceCharge} USDT\n\n";
|
|
|
+ $text .= lang("⌛️请等待系统处理, 到账时间可能需要几分钟!") . "\n";
|
|
|
Cache::delete(get_step_key($chatId));
|
|
|
return [
|
|
|
'chat_id' => $chatId,
|
|
|
@@ -383,18 +383,18 @@ class WithdrawService
|
|
|
->where('member_id', $chatId)->first();
|
|
|
|
|
|
|
|
|
- $text = "请确认\n\n";
|
|
|
- $text .= "手续费:{$serviceCharge} USDT\n";
|
|
|
- $text .= "提现金额:{$amount} USDT\n";
|
|
|
- $text .= "实际到账:{$real} USDT\n";
|
|
|
- $text .= "提现地址:{$address->address}\n";
|
|
|
+ $text = lang("请确认") . "\n\n";
|
|
|
+ $text .= lang('手续费') . ":{$serviceCharge} USDT\n";
|
|
|
+ $text .= lang("提现金额") . ":{$amount} USDT\n";
|
|
|
+ $text .= lang("实际到账") . ":{$real} USDT\n";
|
|
|
+ $text .= lang("提现地址") . ":{$address->address}\n";
|
|
|
|
|
|
$keyboard = [
|
|
|
[
|
|
|
- ['text' => '✅ 确认', 'callback_data' => "withdrawAddress@@done"],
|
|
|
+ ['text' => lang('✅ 确认'), 'callback_data' => "withdrawAddress@@done"],
|
|
|
],
|
|
|
[
|
|
|
- ['text' => '❌取消', 'callback_data' => "message@@close"]
|
|
|
+ ['text' => lang('❌取消'), 'callback_data' => "message@@close"]
|
|
|
]
|
|
|
];
|
|
|
Cache::put("{$chatId}_WITHDRAW_ADDRESS", $address->address);
|
|
|
@@ -413,7 +413,7 @@ class WithdrawService
|
|
|
if (!preg_match('/^-?\d+(\.\d+)?$/', $amount)) {
|
|
|
return [[
|
|
|
'chat_id' => $chatId,
|
|
|
- 'text' => "金额输入不正确,请发送提现数字",
|
|
|
+ 'text' => lang("金额输入不正确,请发送提现数字"),
|
|
|
'reply_to_message_id' => $messageId
|
|
|
]];
|
|
|
}
|
|
|
@@ -425,14 +425,14 @@ class WithdrawService
|
|
|
if ($amount <= $this->serviceCharge) {
|
|
|
return [[
|
|
|
'chat_id' => $chatId,
|
|
|
- 'text' => "⚠️提现不能少于{$this->serviceCharge} USDT,请重试",
|
|
|
+ 'text' => lang("⚠️提现不能少于") . "{$this->serviceCharge} USDT," . lang('请重试'),
|
|
|
'reply_to_message_id' => $messageId
|
|
|
]];
|
|
|
}
|
|
|
if ($amount > $rate_amount) {
|
|
|
return [[
|
|
|
'chat_id' => $chatId,
|
|
|
- 'text' => "⚠️可用余额不足,请重试",
|
|
|
+ 'text' => lang("可用余额不足,请重试"),
|
|
|
'reply_to_message_id' => $messageId
|
|
|
]];
|
|
|
}
|
|
|
@@ -440,14 +440,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,
|
|
|
'parse_mode' => 'MarkdownV2',
|
|
|
'reply_markup' => json_encode(['inline_keyboard' => [[
|
|
|
- ['text' => '进入房间', 'callback_data' => "games@@home{$ru->room_id}"],
|
|
|
+ ['text' => lang('进入房间'), 'callback_data' => "games@@home{$ru->room_id}"],
|
|
|
]]])
|
|
|
]];
|
|
|
}
|
|
|
@@ -459,12 +459,12 @@ class WithdrawService
|
|
|
$keyboard[] = [['text' => $item->alias, 'callback_data' => "withdrawAddress@@choose{$item->id}"]];
|
|
|
}
|
|
|
$keyboard[] = [
|
|
|
- ['text' => '🏠 地址管理', 'callback_data' => "withdraw@@address"],
|
|
|
- ['text' => '❌取消', 'callback_data' => "message@@close"]
|
|
|
+ ['text' => lang("🏠 地址管理"), 'callback_data' => "withdraw@@address"],
|
|
|
+ ['text' => lang('❌取消'), 'callback_data' => "message@@close"]
|
|
|
];
|
|
|
|
|
|
- $text = "请直接选择下面的地址\n";
|
|
|
- $text .= "⚠️提示:请务必确认提现地址正确无误,\n否则资金丢失将无法找回请自负!";
|
|
|
+ $text = lang('请直接选择下面的地址')."\n";
|
|
|
+ $text .= lang("⚠️提示:请务必确认提现地址正确无误,\n否则资金丢失将无法找回请自负!");
|
|
|
Cache::put("{$chatId}_WITHDRAW_MONEY", $amount);
|
|
|
Cache::put(get_step_key($chatId), StepStatus::CHOOSE_WITHDRAW_ADDRESS);
|
|
|
return [[
|
|
|
@@ -484,11 +484,11 @@ class WithdrawService
|
|
|
$rate = Config::where('field', 'exchange_rate_rmb')->first()->val ?? 1;
|
|
|
$temp = floatval($wallet->available_balance);
|
|
|
$amount = bcdiv($temp, $rate, 2);
|
|
|
- $text = "请发送提现金额\n";
|
|
|
- $text .= "💰 当前余额{$temp} RMB\n";
|
|
|
- $text .= "⚠️汇率:1 USDT = {$rate} RMB\n";
|
|
|
- $text .= "💰 当前可用USDT余额:{$amount}\n";
|
|
|
- $text .= "⚠️ 提现将收取{$this->serviceCharge}U作为手续费\n";
|
|
|
+ $text = lang("请发送提现金额");
|
|
|
+ $text .= "\n💰 ".lang('当前余额')."{$temp} RMB\n";
|
|
|
+ $text .= "⚠️".lang('汇率').":1 USDT = {$rate} RMB\n";
|
|
|
+ $text .= "💰 ".lang('当前可用USDT余额').":{$amount}\n";
|
|
|
+ $text .= "⚠️ ".lang('提现将收取')."{$this->serviceCharge}".lang('U作为手续费')."\n";
|
|
|
// $keyboard = [[
|
|
|
// ['text' => "🔙返回", 'callback_data' => "withdraw@@home"],
|
|
|
// ]];
|