efps-version
elf 1 year ago
parent 622dd50f31
commit 99f1365d01

@ -32,8 +32,8 @@ class NotifyController extends AbstractController
Log::info('paymentNotifyToOut params:', $params); Log::info('paymentNotifyToOut params:', $params);
$sign = $request->getHeader('x-efps-sign'); $sign = $request->getHeader('x-efps-sign');
$data = json_encode($params); $data = json_encode($params);
if (!Signer::verify($data, $sign)) { if (!Signer::verify($data, $sign[0])) {
Log::info('paymentNotifyToOut data: ' . $data . ' sign: ' . $sign); Log::info('paymentNotifyToOut data: ' . $data . ' sign: ' . serialize($sign));
return [ return [
'returnCode' => '0001', 'returnCode' => '0001',
'returnMsg' => '签名验证失败' 'returnMsg' => '签名验证失败'
@ -88,8 +88,8 @@ class NotifyController extends AbstractController
Log::info('refundNotifyToOut params:', $params); Log::info('refundNotifyToOut params:', $params);
$sign = $request->getHeader('x-efps-sign'); $sign = $request->getHeader('x-efps-sign');
$data = json_encode($params); $data = json_encode($params);
if (!Signer::verify($data, $sign)) { if (!Signer::verify($data, $sign[0])) {
Log::info('refundNotifyToOut data: ' . $data . ' sign: ' . $sign); Log::info('refundNotifyToOut data: ' . $data . ' sign: ' . serialize($sign));
return [ return [
'returnCode' => '0001', 'returnCode' => '0001',
'returnMsg' => '签名验证失败' 'returnMsg' => '签名验证失败'

Loading…
Cancel
Save