|
@@ -50,11 +50,11 @@ func (r *Recommend) SubRecommend(tidb *Mysql, domain, userId, content string, ma
|
|
if k == 0 {
|
|
if k == 0 {
|
|
matchkeys := ObjToString(v["matchkeys"])
|
|
matchkeys := ObjToString(v["matchkeys"])
|
|
if typ := Int64All(v["type"]); typ == 1 {
|
|
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 {
|
|
} 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 {
|
|
} 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++
|
|
infosLength++
|