Przeglądaj źródła

周末的话直接返回空列表

xiexiaoyuan 2 lat temu
rodzic
commit
ae330c6814
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      services/trade_analysis/trade_analysis.go

+ 2 - 2
services/trade_analysis/trade_analysis.go

@@ -234,8 +234,8 @@ func GetPositionTopDetail(req trade_analysis.GetPositionTopReq) (ret trade_analy
 	//遇到周末则跳过当天
 	weekStr := dataTime.Weekday().String()
 	if weekStr == "Sunday" || weekStr == "Saturday" {
-		errMsg = "日期不正确"
-		err = fmt.Errorf(errMsg)
+		/*errMsg = "日期不正确"
+		err = fmt.Errorf(errMsg)*/
 		return
 	}
 	dataTimeStr = dataTime.Format(utils.FormatDate)