From ce3d99ca62fc7f60dafd98ac29d14cea478d96b3 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期五, 18 八月 2023 10:25:26 +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