修改转自配送失败取消三方配送骑手召唤
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user