From 85168ed67e4582466453d3a7ef38211d18f8c355 Mon Sep 17 00:00:00 2001 From: yangrz Date: Fri, 19 Aug 2022 17:52:53 +0800 Subject: [PATCH] =?UTF-8?q?ccb=E9=80=9A=E7=9F=A5=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Controller/v3/CCBNotifyController.php | 51 ++++++++++++++++++++--- 1 file changed, 45 insertions(+), 6 deletions(-) diff --git a/app/Controller/v3/CCBNotifyController.php b/app/Controller/v3/CCBNotifyController.php index a1c9350..a2312e1 100644 --- a/app/Controller/v3/CCBNotifyController.php +++ b/app/Controller/v3/CCBNotifyController.php @@ -1,34 +1,73 @@ logger = $loggerFactory->get('ccb.notify'); + } + private function saveLog($func, $content) + { + $this->logger->info($func."\n".$content."\n"); } - public function refund() + public function pay() { + $this->saveLog(__FUNCTION__, $this->request->getBody()->getContents()); + return $this->response->json([ + 'Svc_Rsp_St' => '00', + ]); + } + public function refund() + { + $this->saveLog(__FUNCTION__, $this->request->getBody()->getContents()); + return $this->response->json([ + 'Svc_Rsp_St' => '00', + ]); } public function merchant() { - + $this->saveLog(__FUNCTION__, $this->request->getBody()->getContents()); + return $this->response->json([ + 'Svc_Rsp_St' => '00', + ]); } public function accounting() { - + $this->saveLog(__FUNCTION__, $this->request->getBody()->getContents()); + return $this->response->json([ + 'Svc_Rsp_St' => '00', + ]); } public function bill() { - + $this->saveLog(__FUNCTION__, $this->request->getBody()->getContents()); + return $this->response->json([ + 'Svc_Rsp_St' => '00', + ]); } public function platform() { - + $this->saveLog(__FUNCTION__, $this->request->getBody()->getContents()); + return $this->response->json([ + 'Svc_Rsp_St' => '00', + ]); } } \ No newline at end of file