From caf4681ea698e5d713e0146b1bec4d7b7d0b21fe Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Mon, 7 Aug 2023 23:13:07 +0800 Subject: [PATCH] yh --- app/Controller/Payment/NotifyController.php | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) 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);