diff --git a/Application/Callback/Controller/Notify2Controller.class.php b/Application/Callback/Controller/Notify2Controller.class.php index b7f785f2f..946da9702 100644 --- a/Application/Callback/Controller/Notify2Controller.class.php +++ b/Application/Callback/Controller/Notify2Controller.class.php @@ -38,10 +38,12 @@ class Notify2Controller extends BaseController } Vendor('Alipay.AopSdk'); $aop = new \AopClient(); - // $aop->alipayrsaPublicKey = file_get_contents("./Application/Sdk/SecretKey/alipay/alipay2_public_key.txt"); - Log::write(file_get_contents("./Application/Sdk/SecretKey/alipay/alipay2_public_key.txt"), Log::DEBUG); - $result = $aop->rsaCheckV1($notify,"./Application/Sdk/SecretKey/alipay/alipay2_public_key.txt",'RSA2'); - Log::write($result,Log::DEBUG); + $aop->alipayrsaPublicKey = file_get_contents("./Application/Sdk/SecretKey/alipay/alipay2_public_key.txt"); + $result2 = $aop->getSignContent($notify); + + Log::write(json_encode($result2),Log::DEBUG); + $result = $aop->rsaCheckV1($notify,"",'RSA2'); + Log::write(json_encode($result),Log::DEBUG); if ($result) { //获取回调订单信息 if (I('get.methodtype') == "notify") {