回调0.1

master
chenzhi 5 years ago
parent 4c2931c8d3
commit ca5fe30969

@ -38,10 +38,10 @@ 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($aop, Log::DEBUG);
$result = $aop->rsaCheckV2($notify,'','RSA2');
Log::write(serialize($result), Log::DEBUG);
// $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);
if ($result) {
//获取回调订单信息
if (I('get.methodtype') == "notify") {

Loading…
Cancel
Save