From 883baee164e60cb535ea4a4030b34a511f208b48 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期三, 16 八月 2023 14:56:51 +0800
Subject: [PATCH] fix
---
api/v1/client.go | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/api/v1/client.go b/api/v1/client.go
index b439fc6..b354d14 100644
--- a/api/v1/client.go
+++ b/api/v1/client.go
@@ -99,16 +99,16 @@
client.Business.EnterpriseScaleId = params.EnterpriseScaleId
client.MemberId = params.MemberId
- if params.Contact.Name != "" {
- // assign the client's member id to contact when adding
- params.Contact.MemberId = params.MemberId
+ //if params.Contact.Name != "" {
+ // assign the client's member id to contact when adding
+ params.Contact.MemberId = params.MemberId
- errCode, contact := checkContactParams(params.Contact)
- if errCode != ecode.OK {
- return errCode, nil
- }
- client.Contacts = []model.Contact{contact}
+ errCode, contact := checkContactParams(params.Contact)
+ if errCode != ecode.OK {
+ return errCode, nil
}
+ client.Contacts = []model.Contact{contact}
+ //}
return ecode.OK, client
}
--
Gitblit v1.8.0