@@ -53,6 +53,10 @@ func getEdbDataFromThs(edbCode, startDate, endDate string, num int) (item *EdbDa
err = errors.New(" Err:" + err.Error() + ";result:" + string(body))
return
}
+ if string(body) == "null" {
+ err = errors.New("同花顺数据获取异常:" + err.Error() + ";result:" + string(body))
+ return
+ }
tmpItems := new(EdbDataFromThsInterface)
err = json.Unmarshal(body, &tmpItems)