|
|
@ -31,7 +31,6 @@ class Notify2Controller extends BaseController
|
|
|
|
exit('Access Denied');
|
|
|
|
exit('Access Denied');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Log::write($notify, Log::DEBUG);
|
|
|
|
|
|
|
|
$pay_way = $apitype;
|
|
|
|
$pay_way = $apitype;
|
|
|
|
if ($apitype == "swiftpass") {
|
|
|
|
if ($apitype == "swiftpass") {
|
|
|
|
$apitype = "weixin";
|
|
|
|
$apitype = "weixin";
|
|
|
@ -39,10 +38,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");
|
|
|
|
$result2 = $aop->getSignContent($notify);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Log::write(json_encode($result2),Log::DEBUG);
|
|
|
|
|
|
|
|
$result = $aop->rsaCheckV1($notify,"",'RSA2');
|
|
|
|
$result = $aop->rsaCheckV1($notify,"",'RSA2');
|
|
|
|
|
|
|
|
Log::write(json_encode($notify),Log::DEBUG);
|
|
|
|
Log::write(json_encode($result),Log::DEBUG);
|
|
|
|
Log::write(json_encode($result),Log::DEBUG);
|
|
|
|
if ($result) {
|
|
|
|
if ($result) {
|
|
|
|
//获取回调订单信息
|
|
|
|
//获取回调订单信息
|
|
|
|