Explorar o código

确保数据不会遗漏

xyxie hai 9 meses
pai
achega
f2367cb5a2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      services/trade_guangzhou.go

+ 1 - 1
services/trade_guangzhou.go

@@ -141,7 +141,7 @@ func SyncFromGuangzhouTradeData() (err error) {
 	if err != nil || maxDate.IsZero() {
 		startDate = time.Now().AddDate(0, 0, -1).Format(utils.FormatDate) + " 00:00:00"
 	} else {
-		startDate = maxDate.AddDate(0, 0, 1).Format(utils.FormatDate) + " 00:00:00"
+		startDate = maxDate.Format(utils.FormatDate) + " 00:00:00"
 	}
 
 	method := `index/data/list_page`