|
|
@@ -164,20 +164,21 @@ class QianBaoWithdrawService
|
|
|
{
|
|
|
$channel = '';
|
|
|
$card = "";
|
|
|
+ $text = "";
|
|
|
switch ($type) {
|
|
|
case "bank":
|
|
|
- $card = "银行卡";
|
|
|
- $text = "请选择提现的银行卡";
|
|
|
+ $card = lang("银行卡");
|
|
|
+ $text = lang("请选择提现的银行卡");
|
|
|
$channel = 'DF001';
|
|
|
break;
|
|
|
case "aliPay":
|
|
|
- $card = "支付宝";
|
|
|
- $text = "请选择提现的支付宝";
|
|
|
+ $card = lang("支付宝");
|
|
|
+ $text = lang("请选择提现的支付宝");
|
|
|
$channel = "DF002";
|
|
|
break;
|
|
|
case "digital_RMB":
|
|
|
- $card = "数字人民币";
|
|
|
- $text = "请选择提现的账户";
|
|
|
+ $card = lang("数字人民币");
|
|
|
+ $text = lang("请选择提现的账户");
|
|
|
$channel = "DF005";
|
|
|
break;
|
|
|
}
|
|
|
@@ -187,8 +188,8 @@ class QianBaoWithdrawService
|
|
|
$keyboard[] = [['text' => $item->getAlias(), 'callback_data' => "withdrawAddress@@choose_qb_{$item->getId()}"]];
|
|
|
}
|
|
|
$keyboard[] = [
|
|
|
- ['text' => "{$card}管理", 'callback_data' => "withdraw@@management_{$channel}"],
|
|
|
- ['text' => "返回", 'callback_data' => "withdraw@@qb_show_channel"]];
|
|
|
+ ['text' => "{$card}" . lang("管理"), 'callback_data' => "withdraw@@management_{$channel}"],
|
|
|
+ ['text' => lang("返回"), 'callback_data' => "withdraw@@qb_show_channel"]];
|
|
|
return [
|
|
|
'chat_id' => $chatId,
|
|
|
'text' => $text,
|
|
|
@@ -213,43 +214,43 @@ class QianBaoWithdrawService
|
|
|
->count();
|
|
|
|
|
|
|
|
|
- $text = "👤 {$firstName}({$chatId}) 钱宝提现记录\n\n";
|
|
|
+ $text = "👤 {$firstName}({$chatId}) " . lang('钱宝提现记录') . "\n\n";
|
|
|
foreach ($list as $item) {
|
|
|
$amount = floatval($item->amount);
|
|
|
|
|
|
$amount = $item->type == 2 ? "➖ {$amount}" : "➕ $amount";
|
|
|
$text .= "-------------------------------------\n";
|
|
|
$text .= "{$amount} \n";
|
|
|
- $text .= "订单号:{$item->order_no}\n";
|
|
|
+ $text .= lang("订单号") . ":{$item->order_no}\n";
|
|
|
|
|
|
- $text .= "银行:{$item->bank_name}\n";
|
|
|
- $text .= "姓名:{$item->account}\n";
|
|
|
- $text .= "卡号:{$item->card_no}\n";
|
|
|
- $status = ['待处理', '处理中', '成功', '失败'];
|
|
|
- $text .= "状态:{$status[$item->status]}\n";
|
|
|
+ $text .= lang('银行') . ":{$item->bank_name}\n";
|
|
|
+ $text .= lang("姓名") . ":{$item->account}\n";
|
|
|
+ $text .= lang("卡号") . ":{$item->card_no}\n";
|
|
|
+ $status = [lang('待处理'), lang('处理中'), lang('成功'), lang('失败')];
|
|
|
+ $text .= lang("状态") . ":{$status[$item->status]}\n";
|
|
|
if ($item->remark) {
|
|
|
- $text .= "说明:{$item->remark}\n";
|
|
|
+ $text .= lang("说明") . ":{$item->remark}\n";
|
|
|
}
|
|
|
- $text .= "日期:{$item->created_at}\n";
|
|
|
+ $text .= lang('日期').":{$item->created_at}\n";
|
|
|
}
|
|
|
|
|
|
if ($page > 1) {
|
|
|
$keyboard[] = [
|
|
|
- ['text' => "👆上一页", 'callback_data' => "withdraw@@bank_bill_" . ($page - 1)]
|
|
|
+ ['text' => lang("👆上一页"), 'callback_data' => "withdraw@@bank_bill_" . ($page - 1)]
|
|
|
];
|
|
|
}
|
|
|
$allPage = ceil($count / $limit);
|
|
|
if ($allPage > $page) {
|
|
|
if ($page > 1) {
|
|
|
- $keyboard[count($keyboard) - 1][] = ['text' => "👇下一页", 'callback_data' => "withdraw@@bank_bill_" . ($page + 1)];
|
|
|
+ $keyboard[count($keyboard) - 1][] = ['text' => lang("👇下一页"), 'callback_data' => "withdraw@@bank_bill_" . ($page + 1)];
|
|
|
} else {
|
|
|
$keyboard[] = [
|
|
|
- ['text' => "👇下一页", 'callback_data' => "withdraw@@bank_bill_" . ($page + 1)]
|
|
|
+ ['text' => lang("👇下一页"), 'callback_data' => "withdraw@@bank_bill_" . ($page + 1)]
|
|
|
];
|
|
|
}
|
|
|
}
|
|
|
$keyboard[] = [
|
|
|
- ['text' => "返回", 'callback_data' => "topUp@@home"]
|
|
|
+ ['text' => lang("返回"), 'callback_data' => "topUp@@home"]
|
|
|
];
|
|
|
return [
|
|
|
'chat_id' => $chatId,
|