1
This commit is contained in:
@@ -225,13 +225,25 @@ func (c *TaoBaoVegetableController) CancelOnSaleRefundOrder() {
|
||||
}
|
||||
default:
|
||||
order, err := partner.CurOrderManager.LoadOrder(utils.Int64ToStr(afsOrder.PartCancelRequest.BizOrderId), model.VendorIDTaoVegetable)
|
||||
if err != nil || order.Status < model.OrderStatusDelivering || order.Status == model.OrderStatusCanceled {
|
||||
if err != nil {
|
||||
c.Data["json"] = tao_vegetable.CallBackResultOnSaleCancel(nil)
|
||||
c.ServeJSON()
|
||||
} else {
|
||||
return
|
||||
}
|
||||
if order.Status == model.OrderStatusCanceled {
|
||||
c.Data["json"] = tao_vegetable.CallBackResultOnSaleCancel(nil)
|
||||
c.ServeJSON()
|
||||
return
|
||||
}
|
||||
|
||||
if order.Status >= model.OrderStatusDelivering {
|
||||
c.Data["json"] = tao_vegetable.CallBackResultOnSaleCancel(fmt.Errorf("不支持售中取消"))
|
||||
c.ServeJSON()
|
||||
} else {
|
||||
c.Data["json"] = tao_vegetable.CallBackResultOnSaleCancel(nil)
|
||||
c.ServeJSON()
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user