|
@@ -7,6 +7,7 @@ import (
|
|
|
"hongze/hongze_clpt/utils"
|
|
|
"strconv"
|
|
|
"strings"
|
|
|
+ "time"
|
|
|
)
|
|
|
|
|
|
type HomeController struct {
|
|
@@ -279,7 +280,8 @@ func (this *MobileHomeController) NewList() {
|
|
|
resp := new(models.HomeResourceDataListResp)
|
|
|
|
|
|
//condition += " AND source = 'activityvoice' "
|
|
|
-
|
|
|
+ condition += " AND publish_date < ? "
|
|
|
+ pars = append(pars, time.Now().AddDate(0, 0, 30))
|
|
|
total, err := models.GetResourceDataCount(condition, pars)
|
|
|
if err != nil {
|
|
|
br.Msg = "获取失败"
|