|
@@ -837,7 +837,7 @@ func (self *OrderController) Operate() {
|
|
|
}
|
|
}
|
|
|
} else if operate == order_model.OPERATE_CANCEL && o.Status == order_model.STATUS_PROCESSING {
|
|
} else if operate == order_model.OPERATE_CANCEL && o.Status == order_model.STATUS_PROCESSING {
|
|
|
//发起退款流程
|
|
//发起退款流程
|
|
|
- go self.httpRequest(o.WxUserId, o.TotalPrice, o.OrderId, o.TradeNo)
|
|
|
|
|
|
|
+ go self.httpRequest(o.WxUserId, o.TotalPrice, o.PaiedPrice, o.OrderId, o.TradeNo)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if operate == order_model.OPERATE_CONFIRM && o.Status == order_model.STATUS_DISPATCH {
|
|
if operate == order_model.OPERATE_CONFIRM && o.Status == order_model.STATUS_DISPATCH {
|
|
@@ -932,9 +932,9 @@ func (self *OrderController) OrderCommend() {
|
|
|
self.ServeJSON()
|
|
self.ServeJSON()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (self *OrderController) httpRequest(wxId, total int64, orderId, transactionId string) {
|
|
|
|
|
|
|
+func (self *OrderController) httpRequest(wxId, total, paiedPrice int64, orderId, transactionId string) {
|
|
|
|
|
|
|
|
- refund := new(order_model.OrderRefund).Create(wxId, total, orderId, transactionId)
|
|
|
|
|
|
|
+ refund := new(order_model.OrderRefund).Create(wxId, total, paiedPrice, orderId, transactionId)
|
|
|
|
|
|
|
|
url := "http://127.0.0.1:25565/railsadmin/order/refund/"
|
|
url := "http://127.0.0.1:25565/railsadmin/order/refund/"
|
|
|
|
|
|