From 99f1365d0167ef8215037a782f8c8cd616f0b98e Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Thu, 8 Jun 2023 22:16:06 +0800 Subject: [PATCH] yh --- app/Controller/Payment/NotifyController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Controller/Payment/NotifyController.php b/app/Controller/Payment/NotifyController.php index c74050e..69f10bb 100644 --- a/app/Controller/Payment/NotifyController.php +++ b/app/Controller/Payment/NotifyController.php @@ -32,8 +32,8 @@ class NotifyController extends AbstractController Log::info('paymentNotifyToOut params:', $params); $sign = $request->getHeader('x-efps-sign'); $data = json_encode($params); - if (!Signer::verify($data, $sign)) { - Log::info('paymentNotifyToOut data: ' . $data . ' sign: ' . $sign); + if (!Signer::verify($data, $sign[0])) { + Log::info('paymentNotifyToOut data: ' . $data . ' sign: ' . serialize($sign)); return [ 'returnCode' => '0001', 'returnMsg' => '签名验证失败' @@ -88,8 +88,8 @@ class NotifyController extends AbstractController Log::info('refundNotifyToOut params:', $params); $sign = $request->getHeader('x-efps-sign'); $data = json_encode($params); - if (!Signer::verify($data, $sign)) { - Log::info('refundNotifyToOut data: ' . $data . ' sign: ' . $sign); + if (!Signer::verify($data, $sign[0])) { + Log::info('refundNotifyToOut data: ' . $data . ' sign: ' . serialize($sign)); return [ 'returnCode' => '0001', 'returnMsg' => '签名验证失败'