|
|
|
@ -31,7 +31,7 @@ class Notify2Controller extends BaseController
|
|
|
|
|
exit('Access Denied');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
Log::write(serialize($notify), Log::DEBUG);
|
|
|
|
|
Log::write($notify, Log::DEBUG);
|
|
|
|
|
$pay_way = $apitype;
|
|
|
|
|
if ($apitype == "swiftpass") {
|
|
|
|
|
$apitype = "weixin";
|
|
|
|
@ -39,7 +39,8 @@ class Notify2Controller extends BaseController
|
|
|
|
|
Vendor('Alipay.AopSdk');
|
|
|
|
|
$aop = new \AopClient();
|
|
|
|
|
$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);
|
|
|
|
|
if ($result) {
|
|
|
|
|
//获取回调订单信息
|
|
|
|
|