Browse Source

Merge branch 'hotfix/custom_guangzhou_contract' of eta_server/eta_task into master

xyxie 9 months ago
parent
commit
1e88514845
4 changed files with 4 additions and 4 deletions
  1. 1 1
      services/trade_cffex.go
  2. 1 1
      services/trade_ine.go
  3. 1 1
      services/trade_shanghai.go
  4. 1 1
      services/trade_zhengzhou.go

+ 1 - 1
services/trade_cffex.go

@@ -15,7 +15,7 @@ func SyncRankingFromCffex() (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/list`

+ 1 - 1
services/trade_ine.go

@@ -15,7 +15,7 @@ func SyncRankingFromIne() (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/list`

+ 1 - 1
services/trade_shanghai.go

@@ -15,7 +15,7 @@ func SyncRankingFromShanghai() (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/list`

+ 1 - 1
services/trade_zhengzhou.go

@@ -16,7 +16,7 @@ func SyncRankingFromZhengzhou() (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/list`