You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

73 lines
1.7 KiB

<?php
namespace App\Controller\v3;
use App\Controller\BaseController;
use Hyperf\Logger\LoggerFactory;
class CcbNotifyController extends BaseController
{
/**
* @var \Psr\Log\LoggerInterface
*/
private $logger;
public function __construct(LoggerFactory $loggerFactory)
{
parent::__construct();
$this->logger = $loggerFactory->get('ccb.notify');
}
private function saveLog($func, $content)
{
$this->logger->info($func."\n".$content."\n");
}
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',
]);
}
}