|
|
@ -31,7 +31,7 @@ class Notify2Controller extends BaseController
|
|
|
|
exit('Access Denied');
|
|
|
|
exit('Access Denied');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Log::write(serialize($notify), Log::DEBUG);
|
|
|
|
Log::write($notify, Log::DEBUG);
|
|
|
|
$pay_way = $apitype;
|
|
|
|
$pay_way = $apitype;
|
|
|
|
if ($apitype == "swiftpass") {
|
|
|
|
if ($apitype == "swiftpass") {
|
|
|
|
$apitype = "weixin";
|
|
|
|
$apitype = "weixin";
|
|
|
@ -39,7 +39,8 @@ class Notify2Controller extends BaseController
|
|
|
|
Vendor('Alipay.AopSdk');
|
|
|
|
Vendor('Alipay.AopSdk');
|
|
|
|
$aop = new \AopClient();
|
|
|
|
$aop = new \AopClient();
|
|
|
|
$aop->alipayrsaPublicKey = file_get_contents("./Application/Sdk/SecretKey/alipay/alipay2_public_key.txt");
|
|
|
|
$aop->alipayrsaPublicKey = file_get_contents("./Application/Sdk/SecretKey/alipay/alipay2_public_key.txt");
|
|
|
|
$result = $aop->rsaCheckV1($notify,'','RSA2');
|
|
|
|
Log::write($aop, Log::DEBUG);
|
|
|
|
|
|
|
|
$result = $aop->rsaCheckV2($notify,'','RSA2');
|
|
|
|
Log::write(serialize($result), Log::DEBUG);
|
|
|
|
Log::write(serialize($result), Log::DEBUG);
|
|
|
|
if ($result) {
|
|
|
|
if ($result) {
|
|
|
|
//获取回调订单信息
|
|
|
|
//获取回调订单信息
|
|
|
|