|
@@ -124,9 +124,9 @@ func GetBidSearchQuery(area, publishtime, subtype, winner, buyerclass string) st
|
|
|
starttime = fmt.Sprint(time.Date(now.Year(), now.Month(), now.Day()-7, 0, 0, 0, 0, time.Local).Unix())
|
|
|
} else if publishtime == "lately-30" { //最近30天
|
|
|
starttime = fmt.Sprint(time.Date(now.Year(), now.Month(), now.Day()-30, 0, 0, 0, 0, time.Local).Unix())
|
|
|
- } else if publishtime == "thisyear" { //去年
|
|
|
- starttime = fmt.Sprint(time.Date(now.Year()-1, 1, 1, 0, 0, 0, 0, time.Local).Unix())
|
|
|
- endtime = fmt.Sprint(time.Date(now.Year()-1, 12, 31, 23, 59, 59, 0, time.Local).Unix())
|
|
|
+ } else if publishtime == "thisyear" { //最近一年
|
|
|
+ starttime = fmt.Sprint(time.Date(now.Year()-1, now.Month(), now.Day(), now.Hour(), now.Minute(), now.Second(), 0, time.Local).Unix())
|
|
|
+ endtime = fmt.Sprint(now.Unix())
|
|
|
} else {
|
|
|
starttime = strings.Split(publishtime, "_")[0]
|
|
|
endtime = strings.Split(publishtime, "_")[1]
|