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/contact.go |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/api/v1/contact.go b/api/v1/contact.go
index 6c60e46..2a6b72e 100644
--- a/api/v1/contact.go
+++ b/api/v1/contact.go
@@ -46,13 +46,13 @@
 		ctx.Fail(errCode)
 		return
 	}
-	if params.CodeRule.Method == 1 {
-		autoCode := model.GetAutoCode(contact.Id, &params.CodeRule)
-		m := map[string]interface{}{
-			"number": autoCode,
-		}
-		_ = model.NewContactSearch(nil).SetId(contact.Id).UpdateByMap(m)
-	}
+	//if params.CodeRule.Method == 1 {
+	//	autoCode := model.GetAutoCode(contact.Id, &params.CodeRule)
+	//	m := map[string]interface{}{
+	//		"number": autoCode,
+	//	}
+	//	_ = model.NewContactSearch(nil).SetId(contact.Id).UpdateByMap(m)
+	//}
 
 	ctx.Ok()
 }
@@ -157,7 +157,7 @@
 	contact.Birthday = t
 	contact.Wechat = params.Wechat
 	contact.IsFirst = params.IsFirst
-	contact.CodeStandID = params.CodeStandID
+	//contact.CodeStandID = params.CodeStandID
 	return ecode.OK, contact
 }
 

--
Gitblit v1.8.0