|
@@ -52,7 +52,7 @@ class TopUpService
|
|
|
->whereIn('change_type', BalanceLogService::$RW)
|
|
->whereIn('change_type', BalanceLogService::$RW)
|
|
|
->count();
|
|
->count();
|
|
|
|
|
|
|
|
- $text = "👤 {$firstName}({$chatId}) 钱包充值记录\n\n";
|
|
|
|
|
|
|
+ $text = "👤 {$firstName}({$chatId}) " . lang('钱包充值记录') . "\n\n";
|
|
|
foreach ($list as $item) {
|
|
foreach ($list as $item) {
|
|
|
|
|
|
|
|
|
|
|
|
@@ -60,31 +60,31 @@ class TopUpService
|
|
|
$amount = $amount < 0 ? ("➖ " . ($amount * -1)) : "➕ $amount";
|
|
$amount = $amount < 0 ? ("➖ " . ($amount * -1)) : "➕ $amount";
|
|
|
$balance = floatval($item->after_balance);
|
|
$balance = floatval($item->after_balance);
|
|
|
$text .= "-------------------------------------\n";
|
|
$text .= "-------------------------------------\n";
|
|
|
- $text .= "{$amount} \n余额:{$balance} \n";
|
|
|
|
|
- $text .= "类别:{$item->change_type}\n";
|
|
|
|
|
|
|
+ $text .= "{$amount} \n" . lang('余额') . ":{$balance} \n";
|
|
|
|
|
+ $text .= lang('类别') . ":" . lang($item->change_type) . "\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' => "topUpBillNextPage@@" . ($page - 1)]
|
|
|
|
|
|
|
+ ['text' => lang("👆上一页"), 'callback_data' => "topUpBillNextPage@@" . ($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' => "topUpBillNextPage@@" . ($page + 1)];
|
|
|
|
|
|
|
+ $keyboard[count($keyboard) - 1][] = ['text' => lang("👇下一页"), 'callback_data' => "topUpBillNextPage@@" . ($page + 1)];
|
|
|
} else {
|
|
} else {
|
|
|
$keyboard[] = [
|
|
$keyboard[] = [
|
|
|
- ['text' => "👇下一页", 'callback_data' => "topUpBillNextPage@@" . ($page + 1)]
|
|
|
|
|
|
|
+ ['text' => lang("👇下一页"), 'callback_data' => "topUpBillNextPage@@" . ($page + 1)]
|
|
|
];
|
|
];
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
$keyboard[] = [
|
|
$keyboard[] = [
|
|
|
- ['text' => "返回", 'callback_data' => "topUp@@home"]
|
|
|
|
|
|
|
+ ['text' => lang("↩️返回"), 'callback_data' => "topUp@@home"]
|
|
|
];
|
|
];
|
|
|
return [
|
|
return [
|
|
|
'chat_id' => $chatId,
|
|
'chat_id' => $chatId,
|