|
|
@@ -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 [
|