fix(admin): translate credits_added notification type

Display credits_added as 积分增加 with a success badge across message
filters, list rows and details. Extend rendering regression coverage.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
kate522andClaude Fable 5 committed 2026-10-30 18:04:47 +08:00
1 parent f208424a26
commit 1cd19434d1
3 files changed
+10 -5

No files matched your search

+2 -1
View File
@@ -34,6 +34,7 @@ final class MessageTypes {
'ban_appeal' => __('禁封申诉', 'aksrt'),
'report' => __('举报', 'aksrt'),
'withdraw' => __('提现', 'aksrt'),
'credits_added' => __('积分增加', 'aksrt'),
'ticket_new' => __('新工单', 'aksrt'),
'ticket_reply' => __('工单回复', 'aksrt'),
'ticket_urge' => __('工单催单', 'aksrt'),
@@ -57,7 +58,7 @@ final class MessageTypes {
if (in_array($type, ['report', 'ban_appeal', 'asset_balance_decrease', 'asset_points_decrease'], true)) {
return 'danger';
}
if (in_array($type, ['withdraw', 'level_up', 'medal', 'auth_apply_reply', 'download_ready', 'asset_balance_increase', 'asset_points_increase'], true)) {
if (in_array($type, ['withdraw', 'level_up', 'medal', 'auth_apply_reply', 'download_ready', 'credits_added', 'asset_balance_increase', 'asset_points_increase'], true)) {
return 'success';
}
if (in_array($type, ['system', 'notice'], true)) {