master
elf 1 year ago
parent 99542dbc29
commit caf4681ea6

@ -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);

Loading…
Cancel
Save