日志管理增强:登录补全角色、IP兜底、记录业务对象与决策
- 登录日志从用户表补全 actorId/actorName/role - IP 兜底:X-Forwarded-For/X-Real-IP → 否则用连接信息(getConnInfo) - 业务动作记录目标项目名(target_name)与决策(风控审核·通过/管理层审批·驳回/红线裁定·命中) - system_logs 增加 target_name 列;前端日志页显示项目名
This commit is contained in:
@@ -993,6 +993,7 @@ export interface SystemLogItem {
|
||||
method: string;
|
||||
path: string;
|
||||
targetId: string | null;
|
||||
targetName: string | null;
|
||||
status: number | null;
|
||||
success: boolean | null;
|
||||
durationMs: number | null;
|
||||
|
||||
Reference in New Issue
Block a user