|
@@ -72,9 +72,12 @@ class OrderRefundService{
|
|
|
throw_user($e->raw['alipay_trade_refund_response']['sub_msg']);
|
|
|
}
|
|
|
}
|
|
|
+ protected function notifyUrl(){
|
|
|
+ return request()->root(true)."/index/payment/refund/order_no/".$this->refund->order_no;
|
|
|
+ }
|
|
|
public function bankUnion(){
|
|
|
require __DIR__.'/../library/upacp_demo_b2c/sdk/acp_service.php';
|
|
|
- list($bool,$msg)=AcpService::refund($this->refund->order_no,$this->payment->pay_no,$this->getAmount('f'));
|
|
|
+ list($bool,$msg)=AcpService::refund($this->refund->order_no,$this->payment->pay_no,$this->getAmount('f'),$this->notifyUrl());
|
|
|
user_log("OrderRefundService/bankUnion/{$this->refund->order_no}",compact('bool','msg'));
|
|
|
if(!$bool){
|
|
|
throw_user($msg);
|