From 2071758a2b24cc21521ec1888df7ddf60065e88f Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期六, 28 十月 2023 15:33:09 +0800 Subject: [PATCH] 新增用户信息更新管理器,定时更新活跃用户的详情,当用户访问系统的时候更新活跃时间,定时清理非活跃用户 --- api/v1/priorityLevel.go | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/api/v1/priorityLevel.go b/api/v1/priorityLevel.go index 18ddfd4..8017e32 100644 --- a/api/v1/priorityLevel.go +++ b/api/v1/priorityLevel.go @@ -71,6 +71,10 @@ if !ok { return } + if params.Id == 0 { + ctx.Fail(ecode.ParamsErr) + } + params.PriorityLevel.Id = params.Id errCode := service.NewPriorityLevelService().UpdatePriorityLevel(¶ms.PriorityLevel) if errCode != ecode.OK { -- Gitblit v1.8.0