Explorar o código

修改接口请求参数

tuoling805 hai 1 ano
pai
achega
c82f6221ea
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      services/base_from_wind_wsd.go

+ 3 - 3
services/base_from_wind_wsd.go

@@ -75,9 +75,9 @@ func GetEdbDataFromWindWsd(securitiesCode, edbCode, startDate, endDate string) (
 }
 
 // GetEdbDataFromWindUrlWsd 通过url获取wind wsd数据
-func GetEdbDataFromWindUrlWsd(windUrl, securitiesCode, edbCode, startDate, endDate string) (item map[string]map[string]interface{}, errorCode int, err error) {
-	requestWindUrl := windUrl + `/edbInfo/wind/wsd?SecuritiesCode=%s&EdbCode=%s&StartDate=%s&EndDate=%s`
-	requestWindUrl = fmt.Sprintf(requestWindUrl, securitiesCode, edbCode, startDate, endDate)
+func GetEdbDataFromWindUrlWsd(windUrl, stockCode, edbCode, startDate, endDate string) (item map[string]map[string]interface{}, errorCode int, err error) {
+	requestWindUrl := windUrl + `/edbInfo/wind/wsd?StockCode=%s&EdbCode=%s&StartDate=%s&EndDate=%s`
+	requestWindUrl = fmt.Sprintf(requestWindUrl, stockCode, edbCode, startDate, endDate)
 	utils.FileLog.Info(fmt.Sprintf("windUrl:%s", requestWindUrl))
 	body, err := http.Get(requestWindUrl)
 	utils.FileLog.Info(fmt.Sprint("wind result:", string(body)))