瀏覽代碼

feat:xiugai

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++