master
chenzhi 5 years ago
parent 0649501b8a
commit e986b5de58

@ -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) {
//获取回调订单信息

@ -19,7 +19,7 @@ class SsgController extends BaseController {
const CODE_ERROR = -97; //验证码错误
const RETURN_SUCCESS = 1;
const RETURN_FALSE = 2;
const signprice = 0.1; //充值金额
const signprice = 0.01; //充值金额
public function login()

Loading…
Cancel
Save