Commit 016afbd4 by Joneq

增加数据判断

parent 644d1345
Showing with 4 additions and 0 deletions
...@@ -111,6 +111,10 @@ func CheckOrderReturnData(res *gosoap.Response) (err error) { ...@@ -111,6 +111,10 @@ func CheckOrderReturnData(res *gosoap.Response) (err error) {
err = json.Unmarshal([]byte(turnJson.String()),&ErpReturnOrderData) err = json.Unmarshal([]byte(turnJson.String()),&ErpReturnOrderData)
if len(ErpReturnOrderData.Xml.P.A) <= 1 {
return errors.New("未获取到订单数据")
}
ErpReturnOrderData.Xml.P.A = ErpReturnOrderData.Xml.P.A[:len(ErpReturnOrderData.Xml.P.A)-1] ErpReturnOrderData.Xml.P.A = ErpReturnOrderData.Xml.P.A[:len(ErpReturnOrderData.Xml.P.A)-1]
if err != nil { if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment