|
@@ -162,48 +162,48 @@ class SanJinRechargeService extends BaseService
|
|
|
->count();
|
|
->count();
|
|
|
|
|
|
|
|
|
|
|
|
|
- $text = "👤 {$firstName}({$chatId}) 第三方订单记录\n\n";
|
|
|
|
|
|
|
+ $text = "👤 {$firstName}({$chatId}) ".lang('第三方订单记录')."\n\n";
|
|
|
foreach ($list as $item) {
|
|
foreach ($list as $item) {
|
|
|
$amount = floatval($item->amount);
|
|
$amount = floatval($item->amount);
|
|
|
|
|
|
|
|
$amount = $item->type == 2 ? "➖ {$amount}" : "➕ $amount";
|
|
$amount = $item->type == 2 ? "➖ {$amount}" : "➕ $amount";
|
|
|
$text .= "-------------------------------------\n";
|
|
$text .= "-------------------------------------\n";
|
|
|
- $text .= "订单类型:".($item->type == 1?"充值":"提现")." \n";
|
|
|
|
|
- $text .= "订单金额:{$amount} \n";
|
|
|
|
|
- $text .= "订单号:{$item->order_no}\n";
|
|
|
|
|
|
|
+ $text .= lang('订单类型').":".($item->type == 1?lang("充值"):lang("提现"))." \n";
|
|
|
|
|
+ $text .= lang('订单金额').":{$amount} \n";
|
|
|
|
|
+ $text .= lang('订单号').":{$item->order_no}\n";
|
|
|
if($item->type == 2){
|
|
if($item->type == 2){
|
|
|
- $text .= "银行:{$item->bank_name}\n";
|
|
|
|
|
- $text .= "姓名:{$item->account}\n";
|
|
|
|
|
- $text .= "卡号:{$item->card_no}\n";
|
|
|
|
|
|
|
+ $text .= lang("银行").":{$item->bank_name}\n";
|
|
|
|
|
+ $text .= lang("姓名").":{$item->account}\n";
|
|
|
|
|
+ $text .= lang('卡号').":{$item->card_no}\n";
|
|
|
}else{
|
|
}else{
|
|
|
- $text .= "充值类型:{$item->bank_name}\n";
|
|
|
|
|
|
|
+ $text .= lang("充值类型").":".lang($item->bank_name)."\n";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- $status = ['待处理', '处理中', '成功', '失败'];
|
|
|
|
|
- $text .= "状态:{$status[$item->status]}\n";
|
|
|
|
|
|
|
+ $status = [lang('待处理'), lang('处理中'), lang('成功'), lang('失败')];
|
|
|
|
|
+ $text .= lang('状态').":{$status[$item->status]}\n";
|
|
|
if ($item->remark) {
|
|
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) {
|
|
if ($page > 1) {
|
|
|
$keyboard[] = [
|
|
$keyboard[] = [
|
|
|
- ['text' => "👆上一页", 'callback_data' => "topup@@sj_bill_" . ($page - 1)]
|
|
|
|
|
|
|
+ ['text' => lang("👆上一页"), 'callback_data' => "topup@@sj_bill_" . ($page - 1)]
|
|
|
];
|
|
];
|
|
|
}
|
|
}
|
|
|
$allPage = ceil($count / $limit);
|
|
$allPage = ceil($count / $limit);
|
|
|
if ($allPage > $page) {
|
|
if ($allPage > $page) {
|
|
|
if ($page > 1) {
|
|
if ($page > 1) {
|
|
|
- $keyboard[count($keyboard) - 1][] = ['text' => "👇下一页", 'callback_data' => "topup@@sj_bill_" . ($page + 1)];
|
|
|
|
|
|
|
+ $keyboard[count($keyboard) - 1][] = ['text' => lang("👇下一页"), 'callback_data' => "topup@@sj_bill_" . ($page + 1)];
|
|
|
} else {
|
|
} else {
|
|
|
$keyboard[] = [
|
|
$keyboard[] = [
|
|
|
- ['text' => "👇下一页", 'callback_data' => "topup@@sj_bill_" . ($page + 1)]
|
|
|
|
|
|
|
+ ['text' => lang("👇下一页"), 'callback_data' => "topup@@sj_bill_" . ($page + 1)]
|
|
|
];
|
|
];
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
$keyboard[] = [
|
|
$keyboard[] = [
|
|
|
- ['text' => "返回", 'callback_data' => "topUp@@home"]
|
|
|
|
|
|
|
+ ['text' => lang("↩️返回"), 'callback_data' => "topUp@@home"]
|
|
|
];
|
|
];
|
|
|
return [
|
|
return [
|
|
|
'chat_id' => $chatId,
|
|
'chat_id' => $chatId,
|