Browse Source

客成修改线索名称移交客成

renjiaojiao 10 hours ago
parent
commit
cc7018452a
2 changed files with 10 additions and 10 deletions
  1. 9 9
      api/internal/svc/servicecontext.go
  2. 1 1
      service/custom.go

+ 9 - 9
api/internal/svc/servicecontext.go

@@ -24,23 +24,23 @@ func NewServiceContext(c config.Config) *ServiceContext {
 		BiServiceRpc: biservice.NewBiService(zrpc.MustNewClient(c.BiServiceRpc)),
 		ResourceCenterRpc: resource.NewResource(zrpc.MustNewClient(zrpc.RpcClientConf{
 			Etcd: discov.EtcdConf{
-				//Hosts: c.BiServiceRpc.Etcd.Hosts,
-				Hosts: []string{"172.31.31.205:2379"},
-				Key:   c.ResourceCenterKey,
+				Hosts: c.BiServiceRpc.Etcd.Hosts,
+				//Hosts: []string{"172.31.31.205:2379"},
+				Key: c.ResourceCenterKey,
 			},
 		})),
 		UserCenterRpc: usercenter.NewUserCenter(zrpc.MustNewClient(zrpc.RpcClientConf{
 			Etcd: discov.EtcdConf{
-				//Hosts: c.BiServiceRpc.Etcd.Hosts,
-				Hosts: []string{"172.31.31.205:2379"},
-				Key:   c.UserCenterKey,
+				Hosts: c.BiServiceRpc.Etcd.Hosts,
+				//Hosts: []string{"172.31.31.205:2379"},
+				Key: c.UserCenterKey,
 			},
 		})),
 		MessageCenterRpc: messageclient.NewMessage(zrpc.MustNewClient(zrpc.RpcClientConf{
 			Etcd: discov.EtcdConf{
-				//Hosts: c.BiServiceRpc.Etcd.Hosts,
-				Hosts: []string{"172.31.31.205:2379"},
-				Key:   c.MessageCenterKey,
+				Hosts: c.BiServiceRpc.Etcd.Hosts,
+				//Hosts: []string{"172.31.31.205:2379"},
+				Key: c.MessageCenterKey,
 			},
 		})),
 	}

+ 1 - 1
service/custom.go

@@ -24,7 +24,7 @@ func RelatedCompanyIsCustom(companyName string) bool {
 func ClueTransfer(clueId, changeType, kcType, mainClueId int64, clueName string) (status int, err error) {
 	if changeType == 1 { //电销中修改线索名称
 		status, err = DxUpdateClueName(clueId, clueName)
-	} else {             //客成修改名称
+	} else { //客成修改名称
 		if kcType == 1 { //回电销
 			status, err = ClueTransferDx(clueId, mainClueId)
 		} else { //划转到关联客户客成