Browse Source

路径排序处理

WH01243 1 year ago
parent
commit
2d61c484cc
2 changed files with 3 additions and 5 deletions
  1. 2 4
      api/common/initconfig.go
  2. 1 1
      api/internal/service/owner.go

+ 2 - 4
api/common/initconfig.go

@@ -7,8 +7,6 @@ import (
 	"log"
 	"time"
 
-	"github.com/zeromicro/go-zero/zrpc"
-
 	"app.yhyue.com/moapp/jypkg/middleground"
 
 	. "app.yhyue.com/moapp/jybase/es"
@@ -171,12 +169,12 @@ func InitConf() {
 		NewEs(DB.Es.Version, DB.Es.Addr, DB.Es.Size, DB.Es.UserName, DB.Es.Password)
 	}
 
-	UserCenterRpc = usercenter.NewUserCenter(zrpc.MustNewClient(C.UserCenterRpc))
+	/*UserCenterRpc = usercenter.NewUserCenter(zrpc.MustNewClient(C.UserCenterRpc))
 	FileCenterRpc = filecenter.NewFileCenter(zrpc.MustNewClient(C.FileCenterRpc))
 	BaseCenterRpc = basecenter.NewBaseCenter(zrpc.MustNewClient(C.BaseCenterRpc))
 	SocialPlatformRpc = social.NewSocial(zrpc.MustNewClient(C.SocialPlatformRpc))
 	Middleground = middleground.NewMiddleground(C.BaseCenterRpc.Etcd.Hosts).
-		RegResourceCenter(C.ResourceCenterKey)
+		RegResourceCenter(C.ResourceCenterKey)*/
 	conf.MustLoad(*pushFile, &Push)
 	ConnectClickhouse(DB.Clickhouse)
 }

+ 1 - 1
api/internal/service/owner.go

@@ -1092,7 +1092,7 @@ func (t *OwnerService) CandidateChannel() ([]*ResultData, int, int, int, int) {
 	returnData := []*ResultData{}
 	dataMap := &map[string]map[string]interface{}{}
 	if t.PartyA != "" || t.Supplier != "" || t.Heterotophy != "" || t.Intermediary != "" || t.Agency != "" {
-		dataMap = BuyerList(t.PartyA, t.Supplier, t.Heterotophy, "", t.Agency,
+		dataMap = BuyerList(t.PartyA, t.Supplier, t.Heterotophy, t.Intermediary, t.Agency,
 			t.PositionId)
 	}
 	a1, a2, a3, a4 := 0, 0, 0, 0