From a2368b7d0bbae8cccbc2e9389e3ecbf64193ca0e Mon Sep 17 00:00:00 2001 From: dengbiao Date: Wed, 24 Apr 2024 12:10:13 +0800 Subject: [PATCH] update --- .../Service/AliBPass/demo/AliEcoService.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/common/Service/AliBPass/demo/AliEcoService.php b/src/common/Service/AliBPass/demo/AliEcoService.php index 888c7b5..7f47bd3 100644 --- a/src/common/Service/AliBPass/demo/AliEcoService.php +++ b/src/common/Service/AliBPass/demo/AliEcoService.php @@ -491,21 +491,21 @@ class AliEcoService extends BaseService $this->logger($resMapData, 'alipayPlanetEcocampusApiFtokenQuery', true); // 验签 - $verifyRes = checkResponse($resMapData, $client->alipayrsaPublicKey); - - if ($verifyRes) { +// $verifyRes = checkResponse($resMapData, $client->alipayrsaPublicKey); +// +// if ($verifyRes) { // echo "响应验签成功"; - $responseData = $resMapData["response"]; + $responseData = $resMapData["response"] ?? []; if ($responseData['code'] == 10000) { return $this->returnRes(true, $responseData["msg"], $responseData); } else { return $this->returnRes(false, ($responseData['sub_msg'] ?? $responseData['msg']), $resMapData); } - } else { -// echo "响应验签失败"; - return $this->returnRes(false, "响应验签失败", []); - - } +// } else { +//// echo "响应验签失败"; +// return $this->returnRes(false, "响应验签失败", []); +// +// } } /**