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