diff --git a/app/Controller/Payment/NotifyController.php b/app/Controller/Payment/NotifyController.php index 4f31bd7..1e0a76b 100644 --- a/app/Controller/Payment/NotifyController.php +++ b/app/Controller/Payment/NotifyController.php @@ -33,11 +33,13 @@ class NotifyController extends AbstractController public function register(RequestInterface $request) { + $token = $request->route('token'); + $params = $request->all(); + Log::info(__CLASS__ . '[' . $token . ']:', $params); + $token = $request->route('token'); $requestLog = $this->requestService->getRequestLogByToken($token); - $params = $request->all(); - Log::info('registerNotifyParams:', $params); $baofu = new Baofu(); if (!$baofu->notifyVerify($params, 'register')) { Log::info('registerNotifyVerifyFail: ' . $params); @@ -62,10 +64,11 @@ class NotifyController extends AbstractController public function bindCard(RequestInterface $request) { $token = $request->route('token'); + $params = $request->all(); + Log::info(__CLASS__ . '[' . $token . ']:', $params); + $requestLog = $this->requestService->getRequestLogByToken($token); - $params = $request->all(); - Log::info('bindCardNotifyParams:', $params); $baofu = new Baofu(); if (!$baofu->notifyVerify($params, 'bindCard')) { Log::info('bindCardNotifyVerifyFail: ' . $params); @@ -92,10 +95,11 @@ class NotifyController extends AbstractController public function payment(RequestInterface $request) { $token = $request->route('token'); + $params = $request->all(); + Log::info(__CLASS__ . '[' . $token . ']:', $params); + $requestLog = $this->requestService->getRequestLogByToken($token); - $params = $request->all(); - Log::info('paymentNotifyParams:', $params); $baofu = new Baofu(); if (!$baofu->notifyVerify($params, 'payment')) { Log::info('paymentNotifyVerifyFail: ' . $params); @@ -136,10 +140,11 @@ class NotifyController extends AbstractController public function refund(RequestInterface $request) { $token = $request->route('token'); + $params = $request->all(); + Log::info(__CLASS__ . '[' . $token . ']:', $params); + $requestLog = $this->requestService->getRequestLogByToken($token); - $params = $request->all(); - Log::info('refundNotifyParams:', $params); $baofu = new Baofu(); if (!$baofu->notifyVerify($params, 'refund')) { Log::info('refundNotifyVerifyFail: ' . $params);