diff --git a/controllers/taobao_vegetable.go b/controllers/taobao_vegetable.go index 5020c2a9f..9dd3a6530 100644 --- a/controllers/taobao_vegetable.go +++ b/controllers/taobao_vegetable.go @@ -71,6 +71,10 @@ func (c *TaoBaoVegetableController) GetCode() { // OrderStatus 订单状态变化 [post] func (c *TaoBaoVegetableController) OrderStatus() { + c.Data["json"] = tao_vegetable.CallBackResultInfo(nil) + c.ServeJSON() + return + order, err := api.TaoVegetableApi.ReaderOrderInfo(c.Ctx.Request) globals.SugarLogger.Debugf("OrderStatus := %s", utils.Format4Output(order, false)) if err != nil { @@ -88,6 +92,10 @@ func (c *TaoBaoVegetableController) OrderStatus() { // ApplyCancelOrder 用户发起售后申请 func (c *TaoBaoVegetableController) ApplyCancelOrder() { + c.Data["json"] = tao_vegetable.CallBackResultInfo(nil) + c.ServeJSON() + return + afsOrder, err := api.TaoVegetableApi.UserApplyRefund(c.Ctx.Request) globals.SugarLogger.Debugf("ApplyCancelOrder := %s", utils.Format4Output(afsOrder, false)) if err != nil { @@ -104,6 +112,10 @@ func (c *TaoBaoVegetableController) ApplyCancelOrder() { // UserCancelRefund 用户取消售后 func (c *TaoBaoVegetableController) UserCancelRefund() { + c.Data["json"] = tao_vegetable.CallBackResultInfo(nil) + c.ServeJSON() + return + afsOrder, err := api.TaoVegetableApi.UserCancelRefundApply(c.Ctx.Request) globals.SugarLogger.Debugf("UserCancelRefund := %s", utils.Format4Output(afsOrder, false)) if err != nil { @@ -120,6 +132,10 @@ func (c *TaoBaoVegetableController) UserCancelRefund() { // CancelOnSaleRefundOrder 用户售中取消(走订单取消流程) func (c *TaoBaoVegetableController) CancelOnSaleRefundOrder() { + c.Data["json"] = tao_vegetable.CallBackResultInfo(nil) + c.ServeJSON() + return + afsOrder, err := api.TaoVegetableApi.OnSaleRefundOrder(c.Ctx.Request) globals.SugarLogger.Debugf("CancelOnSaleRefundOrder := %s", utils.Format4Output(afsOrder, false)) if err != nil { @@ -136,6 +152,10 @@ func (c *TaoBaoVegetableController) CancelOnSaleRefundOrder() { // RefundOrderSuccess 用户售后成功通知,只有退款成功了才会通知(商户拒绝退款,不会通知) func (c *TaoBaoVegetableController) RefundOrderSuccess() { + + c.Data["json"] = tao_vegetable.CallBackResultInfo(nil) + c.ServeJSON() + return refundSuccess, err := api.TaoVegetableApi.RefundOrderFinish(c.Ctx.Request) globals.SugarLogger.Debugf("RefundOrderSuccess := %s", utils.Format4Output(refundSuccess, false)) if err != nil {