...
|
...
|
@@ -143,6 +143,25 @@ class PayController extends HomeBaseController |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 退款结果回调
|
|
|
*/
|
|
|
public function refundNotify() {
|
|
|
$app = new Application($this->options);
|
|
|
$response = $app->payment->handleRefundNotify(function ($message, $reqInfo, $fail) {
|
|
|
cache('message',$message);
|
|
|
cache('reqInfo',$reqInfo);
|
|
|
cache('fail',$fail);
|
|
|
// 其中 $message['req_info'] 获取到的是加密信息
|
|
|
// $reqInfo 为 message['req_info'] 解密后的信息
|
|
|
// 你的业务逻辑...
|
|
|
return true; // 返回 true 告诉微信“我已处理完成”
|
|
|
// 或返回错误原因 $fail('参数格式校验错误');
|
|
|
});
|
|
|
|
|
|
$response->send();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 红包
|
|
|
*/
|
|
|
public function luckyMoney(){
|
...
|
...
|
|