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