diff --git a/platformapi/mtwmapi/order.go b/platformapi/mtwmapi/order.go index 5ebc65fc..09d4567c 100644 --- a/platformapi/mtwmapi/order.go +++ b/platformapi/mtwmapi/order.go @@ -242,7 +242,6 @@ func (a *API) OrderViewStatus(orderID int64) (status int, err error) { KeyOrderID: orderID, }) if err == nil { - // baseapi.SugarLogger.Debug(result) return int(utils.MustInterface2Int64(result.(map[string]interface{})["status"])), nil } return 0, err @@ -330,7 +329,6 @@ func (a *API) GetOrderRefundDetail(orderID int64, refundType int) (refundOrderDe result, err := a.AccessAPI("ecommerce/order/getOrderRefundDetail", true, params) if err == nil { utils.Map2StructByJson(result.([]interface{})[0], &refundOrderDetail, false) - return refundOrderDetail, nil } - return nil, err + return refundOrderDetail, err }