This commit is contained in:
邹宗楠
2024-02-04 09:43:48 +08:00
parent 913ba27fd3
commit f7c0605e00

View File

@@ -231,12 +231,10 @@ 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 { if order.Status >= model.OrderStatusDelivering {
c.Data["json"] = tao_vegetable.CallBackResultOnSaleCancel(fmt.Errorf("不支持售中取消")) c.Data["json"] = tao_vegetable.CallBackResultOnSaleCancel(fmt.Errorf("不支持售中取消"))
c.ServeJSON() c.ServeJSON()
@@ -245,7 +243,6 @@ func (c *TaoBaoVegetableController) CancelOnSaleRefundOrder() {
c.ServeJSON() c.ServeJSON()
} }
} }
}
} }
// RefundOrderSuccess 用户售后成功通知,只有退款成功了才会通知(商户拒绝退款,不会通知) // RefundOrderSuccess 用户售后成功通知,只有退款成功了才会通知(商户拒绝退款,不会通知)