From a540cf74963886f5cb28a67b274b803fb605ec2e Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期日, 04 二月 2024 09:42:16 +0800
Subject: [PATCH] 更改来源为crm

---
 api/v1/faultType.go |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/api/v1/faultType.go b/api/v1/faultType.go
index 2b2beb5..233652f 100644
--- a/api/v1/faultType.go
+++ b/api/v1/faultType.go
@@ -71,6 +71,10 @@
 	if !ok {
 		return
 	}
+    if params.Id == 0 {
+        ctx.Fail(ecode.ParamsErr)
+    }
+    params.FaultType.Id = params.Id
 
 	errCode := service.NewFaultTypeService().UpdateFaultType(&params.FaultType)
 	if errCode != ecode.OK {

--
Gitblit v1.8.0