diff --git a/app/Http/Controllers/AdminCommandController.php b/app/Http/Controllers/AdminCommandController.php index 7bf4d28..cabf419 100644 --- a/app/Http/Controllers/AdminCommandController.php +++ b/app/Http/Controllers/AdminCommandController.php @@ -525,7 +525,16 @@ class AdminCommandController extends Controller } // 发放金币(通过 UserCurrencyService 原子性更新 + 写流水) - $positionName = $isSuperAdmin ? '超级管理员' : ($position->name ?? '职务'); + // 组合「部门 · 职务」显示名,超管特殊处理 + if ($isSuperAdmin) { + $positionName = '超级管理员'; + } elseif ($position) { + $deptName = $position->department?->name; + $positionName = $deptName ? "{$deptName} · {$position->name}" : $position->name; + } else { + $positionName = '职务'; + } + $this->currencyService->change( $target, 'gold',