|
@@ -18,6 +18,7 @@ const (
|
|
searchTmpl = `您搜索的“%s”有新的机会`
|
|
searchTmpl = `您搜索的“%s”有新的机会`
|
|
visitTmpl = `您浏览过的“%s”项目有同类项目`
|
|
visitTmpl = `您浏览过的“%s”项目有同类项目`
|
|
subsetTmpl = `您订阅的“%s”有新的机会`
|
|
subsetTmpl = `您订阅的“%s”有新的机会`
|
|
|
|
+ newestTmpl = `最新采购项目,请及时查看!`
|
|
)
|
|
)
|
|
|
|
|
|
var (
|
|
var (
|
|
@@ -40,6 +41,7 @@ func (r *Recommend) SubRecommend(tidb *Mysql, domain, userId, content string, ma
|
|
}
|
|
}
|
|
if list == nil || len(*list) == 0 {
|
|
if list == nil || len(*list) == 0 {
|
|
list = r.newest
|
|
list = r.newest
|
|
|
|
+ jcly = newestTmpl
|
|
}
|
|
}
|
|
if list == nil || len(*list) == 0 {
|
|
if list == nil || len(*list) == 0 {
|
|
return "", "", "", "", 0, 0
|
|
return "", "", "", "", 0, 0
|