diff --git a/api/service/OrderInquiry.go b/api/service/OrderInquiry.go index 966c372..d6a8a25 100644 --- a/api/service/OrderInquiry.go +++ b/api/service/OrderInquiry.go @@ -117,7 +117,7 @@ func (r *OrderInquiryService) CancelOrderInquiry(req requests.CancelOrderInquiry NotifyUrl: config.C.Wechat.RefundNotifyDomain + config.C.Wechat.PatientInquiryRefundNotifyUrl, } - refund, err := refundRequest.Refund() + refund, err := refundRequest.Refund(1) if err != nil { tx.Rollback() return false, errors.New(err.Error()) diff --git a/api/service/orderProduct.go b/api/service/orderProduct.go index 9db13f9..0105c4a 100644 --- a/api/service/orderProduct.go +++ b/api/service/orderProduct.go @@ -171,7 +171,7 @@ func (r *OrderProductService) CancelOrderProduct(req requests.CancelOrderProduct NotifyUrl: config.C.Wechat.RefundNotifyDomain + config.C.Wechat.PatientProductRefundNotifyUrl, } - refund, err := refundRequest.Refund() + refund, err := refundRequest.Refund(2) if err != nil { tx.Rollback() return false, errors.New(err.Error())