wangchuanjin 8 ヶ月 前
コミット
d94aa9bac7
1 ファイル変更3 行追加3 行削除
  1. 3 3
      recommend/recommend.go

+ 3 - 3
recommend/recommend.go

@@ -50,11 +50,11 @@ func (r *Recommend) SubRecommend(tidb *Mysql, domain, userId, content string, ma
 		if k == 0 {
 			matchkeys := ObjToString(v["matchkeys"])
 			if typ := Int64All(v["type"]); typ == 1 {
-				jcly = fmt.Sprintf(searchTmpl, ShortenTxt(20, fmt.Sprintf(searchTmpl, ""), matchkeys))
+				jcly = fmt.Sprintf(subsetTmpl, ShortenTxt(20, fmt.Sprintf(subsetTmpl, ""), matchkeys))
 			} else if typ == 2 {
-				jcly = fmt.Sprintf(visitTmpl, ShortenTxt(20, fmt.Sprintf(visitTmpl, ""), matchkeys))
+				jcly = fmt.Sprintf(searchTmpl, ShortenTxt(20, fmt.Sprintf(searchTmpl, ""), matchkeys))
 			} else if typ == 3 {
-				jcly = fmt.Sprintf(subsetTmpl, ShortenTxt(20, fmt.Sprintf(subsetTmpl, ""), matchkeys))
+				jcly = fmt.Sprintf(visitTmpl, ShortenTxt(20, fmt.Sprintf(visitTmpl, ""), matchkeys))
 			}
 		}
 		infosLength++