Commit 7cf49b29 authored by 蔡闯's avatar 蔡闯

支付回调侧测试

parent 74f256bb
......@@ -14,21 +14,21 @@ class Payreturn extends BaseController
require_once "../extend/aliPay/AopClient.php";
//生成日志
file_put_contents('./log.text','1',FILE_APPEND);
file_put_contents('./log.txt','1',FILE_APPEND);
$this->createPayLog($_POST,"支付宝");
file_put_contents('./log.text','2',FILE_APPEND);
file_put_contents('./log.txt','2',FILE_APPEND);
$aop = new \AopClient();
$public_key = config('app.pay_alipay_public_key');
$aop->alipayrsaPublicKey = $public_key;
$flag = $aop->rsaCheckV1($_POST, NULL, "RSA2");
file_put_contents('./log.text','3',FILE_APPEND);
file_put_contents('./log.txt','3',FILE_APPEND);
if($flag){
file_put_contents('./log.text','4',FILE_APPEND);
file_put_contents('./log.txt','4',FILE_APPEND);
if($this->changePayStatus($_POST['out_trade_no'])){
die('success');
}
}
file_put_contents('./log.text','5',FILE_APPEND);
file_put_contents('./log.txt','5',FILE_APPEND);
die('fail');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment