chenzhi 5 years ago
parent 4ebba110d9
commit c211c493ed

@ -3,7 +3,7 @@
namespace Callback\Controller; namespace Callback\Controller;
use Org\UcenterSDK\Ucservice; use Org\UcenterSDK\Ucservice;
use Think\Log;
/** /**
* 新版支付回调控制器 * 新版支付回调控制器
@ -31,7 +31,7 @@ class Notify2Controller extends BaseController
exit('Access Denied'); exit('Access Denied');
} }
} }
Log::write(serialize($notify), Log::DEBUG);
$pay_way = $apitype; $pay_way = $apitype;
if ($apitype == "swiftpass") { if ($apitype == "swiftpass") {
$apitype = "weixin"; $apitype = "weixin";
@ -40,7 +40,7 @@ class Notify2Controller extends BaseController
$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'); $result = $aop->rsaCheckV1($notify,'','RSA2');
Log::write(serialize($result), Log::DEBUG);
if ($result) { if ($result) {
//获取回调订单信息 //获取回调订单信息
if (I('get.methodtype') == "notify") { if (I('get.methodtype') == "notify") {

Loading…
Cancel
Save