xingzai 1 vuosi sitten
vanhempi
commit
377ff56dac
2 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  1. 2 2
      services/es_comprehensive.go
  2. 3 0
      services/keyword.go

+ 2 - 2
services/es_comprehensive.go

@@ -929,11 +929,11 @@ func GetResourceDataEsList(list []*SearchComprehensiveItem, user *models.WxUserI
 			productinteriorIds = append(productinteriorIds, v.SourceId)
 		} else if v.Source == "industrialsourceHz" {
 			industrialResourceIdsHz = append(industrialResourceIdsHz, v.SourceId)
-		} else if v.Source == "industrialResourceIdsYx" {
+		} else if v.Source == "industrialsourceYx" {
 			industrialResourceIdsYx = append(industrialResourceIdsYx, v.SourceId)
 		}
-
 	}
+	fmt.Println(industrialResourceIdsYx)
 	//处理文章
 	if len(articleIds) > 0 {
 		pars = make([]interface{}, 0)

+ 3 - 0
services/keyword.go

@@ -96,6 +96,9 @@ func SearchKeywordUserRmind(user *models.WxUserItem, keyWord string) (err error)
 			err = errors.New("GetSellerByAdminId, Err: " + e.Error())
 			return
 		}
+		if len(openIdList) == 0 {
+			return
+		}
 		first = fmt.Sprint("互动:搜索,", user.RealName, "--", user.CompanyName)
 		keyword1 = "搜索关键词:" + keyWord
 		keyword2 = first