|
|
|
@ -68,6 +68,8 @@ class NotifyController extends BaseController |
|
|
|
|
|
|
|
// 通知回调,进行业务处理
|
|
|
|
$response = $app->handlePaidNotify(function ($message, $fail) use ($app) { |
|
|
|
|
|
|
|
var_dump('message',$message); |
|
|
|
Db::beginTransaction(); |
|
|
|
try { |
|
|
|
// 支付失败或者通知失败
|
|
|
|
@ -190,7 +192,7 @@ class NotifyController extends BaseController |
|
|
|
|
|
|
|
var_dump('reponse',$response->getContent()); |
|
|
|
return $this->response |
|
|
|
->withHeader('Content-Type', 'application/xml') |
|
|
|
->withHeader('Content-Type', 'text/xml') |
|
|
|
->withStatus(200) |
|
|
|
->withBody(new SwooleStream($response->getContent())); |
|
|
|
|
|
|
|
|