From e0b197a92cfd908b2a6ee6e4f783eee5403619dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Sun, 17 Apr 2022 15:36:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BD=AC=E8=87=AA=E9=85=8D?= =?UTF-8?q?=E9=80=81=E5=A4=B1=E8=B4=A5=E5=8F=96=E6=B6=88=E4=B8=89=E6=96=B9?= =?UTF-8?q?=E9=85=8D=E9=80=81=E9=AA=91=E6=89=8B=E5=8F=AC=E5=94=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformapi/mtwmapi/order.go | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/platformapi/mtwmapi/order.go b/platformapi/mtwmapi/order.go index e79cbbaf..16a29782 100644 --- a/platformapi/mtwmapi/order.go +++ b/platformapi/mtwmapi/order.go @@ -418,9 +418,20 @@ func (a *API) OrderDelivering(orderID int64) (err error) { } func (a *API) OrderArrived(orderID int64) (err error) { - _, err = a.AccessAPI("order/arrived", true, map[string]interface{}{ + result, err := a.AccessAPI("order/arrived", true, map[string]interface{}{ KeyOrderID: orderID, }) + if err != nil { + return err + } + if result != nil { + if result.(string) == "ok" { + return nil + } else { + return errors.New("美团系统操作异常,订单查询ng") + } + } + return err }