@@ -336,7 +336,9 @@ func (this *MobileHomeController) NewList() {
return
}
- condition += ` OR (source = 'article' AND source_id IN (` + articleIntIds + `) `
+ if articleIntIds != "" {
+ condition += ` OR (source = 'article' AND source_id IN (` + articleIntIds + `) `
+ }
//查询近一个月的数据
conditionInit = " AND publish_date > '" + time.Now().AddDate(0, 0, -30).Format(utils.FormatDateTime) + "'"