Przeglądaj źródła

fix:搜索限制修改

duxin 2 lat temu
rodzic
commit
d7516a22a0
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      entity/search/advancedProject.go
  2. 1 1
      services/action.go

+ 1 - 1
entity/search/advancedProject.go

@@ -134,7 +134,7 @@ func (mae *MarketAnalysisEntity) KeyWordFormat(userid, keyWord string) (ret bool
 				return
 			}
 			aItems = KeyFormat(strings.Split(keyWord, " "))
-		} else if mae.STypes != 1 { //没有关键词 订阅页面超前项目
+		} else { //没有关键词 超前项目
 			//未传搜索词按照关键词匹配
 			aItems, ret = Subscription(userid)
 		}

+ 1 - 1
services/action.go

@@ -28,7 +28,7 @@ func (this *LeadGeneration) GetDate() {
 		t, _ := this.GetInt("dType")
 		rData := map[string]interface{}{}
 
-		if t != 1 || keyWords != "" {
+		if t != 0 || keyWords != "" {
 			//获取超前项目
 			if aheadData := mananger.JyAheadManager.GetData(userId, keyWords, isNewUser, t); aheadData != nil && len(aheadData) > 0 {
 				rData["ahead"] = aheadData