Quellcode durchsuchen

拉取最近7填数据修改

WH01243 vor 2 Jahren
Ursprung
Commit
c5fe2b4aed
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      jyBXSubscribe/rpc/model/push.go

+ 1 - 1
jyBXSubscribe/rpc/model/push.go

@@ -897,7 +897,7 @@ func (s *subscribePush) getDefaultDatasSQL(bsp *ViewCondition) (str string) {
 	bools := []string{}
 	musts := []string{}
 	//发布时间最新7天(正式环境需要修改)
-	musts = append(musts, fmt.Sprintf(bidTime, time.Now().AddDate(0, 0, -365).Unix()))
+	musts = append(musts, fmt.Sprintf(bidTime, time.Now().AddDate(0, 0, -7).Unix()))
 	//省份
 	areaCity := []string{}
 	if len(bsp.Area) > 0 {