Ver código fonte

fix:同花顺接口域名变更

Roc 2 anos atrás
pai
commit
281a2d21f7
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      services/base_from_ths.go

+ 1 - 1
services/base_from_ths.go

@@ -44,7 +44,7 @@ func GetEdbDataFromThs(edbCode, startDate, endDate string) (item *EdbDataFromThs
 
 // getEdbDataFromThs 获取同花顺接口数据
 func getEdbDataFromThs(edbCode, startDate, endDate string, num int) (item *EdbDataFromThs, err error) {
-	thsUrl := utils.Hz_Ths_Data_Url + `edbInfo/ths?EdbCode=%s&StartDate=%s&EndDate=%s`
+	thsUrl := utils.Hz_Wind_Data_Url + `edbInfo/ths?EdbCode=%s&StartDate=%s&EndDate=%s`
 	thsUrl = fmt.Sprintf(thsUrl, edbCode, startDate, endDate)
 	utils.FileLog.Info("thsUrl:" + thsUrl)
 	body, err := http.Get(thsUrl)