Commit 95161b5f authored by 蔡闯's avatar 蔡闯

支付测试

parent 44290a57
......@@ -12,6 +12,7 @@ class Payorder extends Base
{
//业主所有房间下的未缴费的水电物业等,只有业主才能看到记录
public function payList() {
//获取是业主身份的房间
$vacancys = Db::name('house_user_bind')->alias('hub')
->leftJoin('house_vacancy hv','hv.vacancy_id = hub.vacancy_id')
......
......@@ -11,15 +11,15 @@ class Payreturn extends BaseController
{
//支付宝支付成功后的异步通知地址
public function aliPayReturn() {
file_put_contents('./log.text',"支付测试--1",FILE_APPEND);
require_once "../extend/aliPay/AopClient.php";
//生成日志
$this->createPayLog($_POST,"支付宝");
file_put_contents('./log.text',"支付测试--2",FILE_APPEND);
$aop = new \AopClient();
$public_key = config('app.pay_alipay_public_key');
$aop->alipayrsaPublicKey = $public_key;
$flag = $aop->rsaCheckV1($_POST, NULL, "RSA2");
var_dump($flag);
if($flag){
if($this->changePayStatus($_POST['out_trade_no'])){
die('success');
......
支付测试--1
\ No newline at end of file
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