|
@@ -45,6 +45,10 @@ func GetEdbDataFromPb(edbCode, startDate, endDate, edbTerminalCode string) (item
|
|
|
utils.FileLog.Info("GetEdbDataByPb Unmarshal Err:" + err.Error())
|
|
|
return
|
|
|
}
|
|
|
+ if item == nil {
|
|
|
+ err = fmt.Errorf("彭博数据转结构体失败,body:" + string(body))
|
|
|
+ return
|
|
|
+ }
|
|
|
edbCode, _ = url.QueryUnescape(edbCode)
|
|
|
return
|
|
|
}
|
|
@@ -86,6 +90,11 @@ func GetEdbDataFromPbFinance(companyCode, edbCode, startDate, endDate, edbTermin
|
|
|
utils.FileLog.Info("GetEdbDataByPb Unmarshal Err:" + err.Error())
|
|
|
return
|
|
|
}
|
|
|
+ if item == nil {
|
|
|
+ err = fmt.Errorf("彭博财务数据转结构体失败,body:" + string(body))
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
edbCode, _ = url.QueryUnescape(edbCode)
|
|
|
return
|
|
|
}
|