进行了一些小优化

This commit is contained in:
kate522 committed 2026-08-25 06:02:26 +08:00
1 parent 75d1e6e53b
commit 8ddbfdd7b7
2 files changed
+3 -6

No files matched your search

+1 -4
View File
@@ -669,10 +669,7 @@ class Withdrawal {
$row['amount'] = $this->database_balance_decimal((string) ($row['amount'] ?? '0'));
$row['fee_rate'] = (int) ($meta['fee_rate'] ?? 0);
$display = (string) ($meta['account'] ?? $row['account_info'] ?? '');
$display_length = mb_strlen($display, 'UTF-8');
$row['display_account'] = $display_length > 4
? mb_substr($display, 0, 2, 'UTF-8') . str_repeat('*', max(2, $display_length - 4)) . mb_substr($display, -2, null, 'UTF-8')
: '****';
$row['display_account'] = $display;
$row['source'] = (string) ($meta['source'] ?? 'balance');
return $row;
}