1
This commit is contained in:
@@ -231,19 +231,16 @@ func (c *TaoBaoVegetableController) CancelOnSaleRefundOrder() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if order.Status < model.OrderStatusDelivering || order.Status == model.OrderStatusCanceled {
|
if order.Status == model.OrderStatusCanceled {
|
||||||
if order.Status == model.OrderStatusCanceled {
|
c.Data["json"] = tao_vegetable.CallBackResultOnSaleCancel(nil)
|
||||||
c.Data["json"] = tao_vegetable.CallBackResultOnSaleCancel(nil)
|
c.ServeJSON()
|
||||||
c.ServeJSON()
|
}
|
||||||
}
|
if order.Status >= model.OrderStatusDelivering {
|
||||||
|
c.Data["json"] = tao_vegetable.CallBackResultOnSaleCancel(fmt.Errorf("不支持售中取消"))
|
||||||
if order.Status >= model.OrderStatusDelivering {
|
c.ServeJSON()
|
||||||
c.Data["json"] = tao_vegetable.CallBackResultOnSaleCancel(fmt.Errorf("不支持售中取消"))
|
} else {
|
||||||
c.ServeJSON()
|
c.Data["json"] = tao_vegetable.CallBackResultOnSaleCancel(nil)
|
||||||
} else {
|
c.ServeJSON()
|
||||||
c.Data["json"] = tao_vegetable.CallBackResultOnSaleCancel(nil)
|
|
||||||
c.ServeJSON()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user