From fb1aeb80f0fbb8435e095a8c9471c6231b93dc24 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期二, 17 十月 2023 20:21:06 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/aps/crm --- 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