From 3169573e77f52c1e80596eb32ddd40324dd20e94 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Mon, 21 Aug 2023 18:56:13 +0800 Subject: [PATCH] update --- src/applet/app/controllers/AliCallBackController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/applet/app/controllers/AliCallBackController.php b/src/applet/app/controllers/AliCallBackController.php index f3c52d2..bcb5f25 100644 --- a/src/applet/app/controllers/AliCallBackController.php +++ b/src/applet/app/controllers/AliCallBackController.php @@ -46,7 +46,8 @@ class AliCallBackController extends \Phalcon\Mvc\Controller public function ecoCallBackAction() { $params = $this->request->get(); - $this->logger($params, 'aliEcoCommonCallBack', true); + $this->logger(["req" => $params], 'aliEcoCommonCallBack', true); + //获取支付宝行业云公钥 $alipayrsaPublicKey = 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuWFuSpwY/2llLhy5Hxkqcc0qQFQOvemkYOI4S43L4qArX4x+DQN1RFuvfGuwOLScBKaoDYHsu9PSoTtcIj4obhhexbWHfelcsouV7Pj4YChrOkOLHAMLDQhGRXaZyXQAJdk2DoBkJ0vBDD/b1gZT8QznPopvuT4Y0rx/a2vK+5B/XV0wUuP2PnpWoPxNSwr7neFWvUdkC7yJJg4zJ1INLYy9TgHH3LKYrsEDbQzPJyMPFhD0zDb36b62q3tQYc1w8JknS6XeXMkX1Tu4zZbAxyIiv3J1FK8y7dtoRi9gLgo0uLsXWDn5AwAlzqfOERgLMWD2r6FE8tOXVbMha6IImQIDAQAB'; //支付宝提供的密钥 @@ -96,6 +97,9 @@ class AliCallBackController extends \Phalcon\Mvc\Controller "sign" => $sign1, "response" => $response ]; + + $this->logger(["resp" => $params], 'aliEcoCommonCallBack', true); + header('Content-Type: application/json'); exit(json_encode( $result