hsun 1 year ago
parent
commit
63ae2d1935
1 changed files with 1 additions and 1 deletions
  1. 1 1
      services/index_data/jiayue_platform.go

+ 1 - 1
services/index_data/jiayue_platform.go

@@ -211,7 +211,7 @@ func GetNewIndexAndDataFromJiaYue() (indexList []*response.IndexResp, err error)
 	indexPars := make([]interface{}, 0)
 	// 同步多久前至今的新指标
 	m := global.CONFIG.Business.JiaYueIndexSyncMinute
-	if m <= 0 {
+	if m == 0 {
 		m = -30 // 默认半小时
 	}
 	timeBefore := time.Now().Local().Add(time.Duration(m) * time.Minute).Format(utils.FormatDateTime)