Explorar o código

免费用户可以筛选采购单位画像

wangkaiyue %!s(int64=3) %!d(string=hai) anos
pai
achega
7ae2e9753f

+ 1 - 1
src/jfw/modules/bigmember/src/entity/portrait.go

@@ -237,7 +237,7 @@ func (this *Portrait) BuyerPortraitData(screen *PortraitScreen, flag string) (ma
 		return nil, errors.New("企业名称异常")
 	}
 	buyerPortraitData := map[string]interface{}{}
-	if !screen.HasPower || screen.IsEmptySearch() { //空查询读缓存
+	if screen.IsEmptySearch() { //空查询读缓存
 		buyerPortraitData = TryFunc(GetPortraitCache, screen.Ent, "buyer", 2)
 	} else {
 		Screen_Thread <- true

+ 2 - 4
src/jfw/modules/bigmember/src/service/portrait/memberPortraitAction.go

@@ -209,6 +209,7 @@ func (this *EntPortrait) WinnerMiniPortrait() {
 }
 
 //BuyerSelects 采购单位画像可供筛选的条件
+//dev.6.2.1免费用户可筛选画像
 func (this *EntPortrait) BuyerSelects() {
 	userId := qutil.ObjToString(this.GetSession("userId"))
 	rData, errMsg := func() (interface{}, error) {
@@ -216,13 +217,10 @@ func (this *EntPortrait) BuyerSelects() {
 		if buyer == "" {
 			return nil, fmt.Errorf("企业参数异常")
 		}
-		_, hasPower, err := entity.CreatePortraitManager(userId, "buyerPortrait")
+		_, _, err := entity.CreatePortraitManager(userId, "buyerPortrait")
 		if err != nil {
 			return nil, err
 		}
-		if !hasPower {
-			return nil, fmt.Errorf("非法请求")
-		}
 		pwp := &entity.PortraitScreen{Ent: buyer}
 		return pwp.GetProjectSelectItems(false)
 	}()