|
@@ -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)))
|