diff --git a/src/applet/app/controllers/AliCallBackController.php b/src/applet/app/controllers/AliCallBackController.php index 867c57b..f3c52d2 100644 --- a/src/applet/app/controllers/AliCallBackController.php +++ b/src/applet/app/controllers/AliCallBackController.php @@ -47,7 +47,6 @@ class AliCallBackController extends \Phalcon\Mvc\Controller { $params = $this->request->get(); $this->logger($params, 'aliEcoCommonCallBack', true); - //获取支付宝行业云公钥 $alipayrsaPublicKey = 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuWFuSpwY/2llLhy5Hxkqcc0qQFQOvemkYOI4S43L4qArX4x+DQN1RFuvfGuwOLScBKaoDYHsu9PSoTtcIj4obhhexbWHfelcsouV7Pj4YChrOkOLHAMLDQhGRXaZyXQAJdk2DoBkJ0vBDD/b1gZT8QznPopvuT4Y0rx/a2vK+5B/XV0wUuP2PnpWoPxNSwr7neFWvUdkC7yJJg4zJ1INLYy9TgHH3LKYrsEDbQzPJyMPFhD0zDb36b62q3tQYc1w8JknS6XeXMkX1Tu4zZbAxyIiv3J1FK8y7dtoRi9gLgo0uLsXWDn5AwAlzqfOERgLMWD2r6FE8tOXVbMha6IImQIDAQAB'; //支付宝提供的密钥 @@ -58,7 +57,7 @@ class AliCallBackController extends \Phalcon\Mvc\Controller $response = []; switch ($params["service"] ?? "") { case "alipay.planet.ecocampus.spi.school.queryFaceGroupKey": - $biz_content = json_encode($params["biz_content"], true); + $biz_content = json_decode($params["biz_content"], true); //SPI::获取学校人脸库id $selfSupportForSchoolInfo = SelfSupportForSchoolInfo::findFirst("school_code = '{$biz_content["schoolCode"]}'"); if (empty($selfSupportForSchoolInfo)) {