From 61784c06f6d015b3e29b03a926ed359f1a164362 Mon Sep 17 00:00:00 2001 From: gazebo Date: Wed, 20 Mar 2019 17:47:31 +0800 Subject: [PATCH] =?UTF-8?q?-=20jdapi.OrderShoudSettlementService=E4=B8=AD?= =?UTF-8?q?=E5=A4=84=E7=90=86result=E4=B8=BAnil=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformapi/jdapi/order.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platformapi/jdapi/order.go b/platformapi/jdapi/order.go index 85f4a6e9..095920d1 100644 --- a/platformapi/jdapi/order.go +++ b/platformapi/jdapi/order.go @@ -202,6 +202,9 @@ func (a *API) OrderShoudSettlementService(orderId string) (map[string]interface{ if err != nil { return nil, err } + if result == nil { + return nil, utils.NewErrorIntCode("查询订单信息异常", -4) + } return result.(map[string]interface{}), nil }