|
|
@@ -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]];
|
|
|
}
|
|
|
|