50 lines
1.1 KiB
PHP
Executable File
50 lines
1.1 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
|
* =========================================================
|
|
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
|
* ----------------------------------------------
|
|
* 官方网址: https://www.niushop.com
|
|
|
|
* =========================================================
|
|
*/
|
|
|
|
namespace app\pay\controller;
|
|
|
|
use app\Controller;
|
|
use app\model\system\Pay as PayModel;
|
|
|
|
/**
|
|
* 支付控制器
|
|
*/
|
|
class Pay extends Controller
|
|
{
|
|
|
|
/**
|
|
* 支付异步回调
|
|
*/
|
|
public function notify()
|
|
{
|
|
$param = input();
|
|
event('PayNotify', []);
|
|
}
|
|
|
|
public function payReturn()
|
|
{
|
|
|
|
}
|
|
|
|
/**
|
|
* 付款码支付
|
|
*/
|
|
public function authcodePay(){
|
|
$param = input();
|
|
$result = event('AuthcodePay', $param, true);
|
|
if(empty($result)){
|
|
$pay_model = new PayModel();
|
|
return json($pay_model->error([], '付款码未通过校验!'));
|
|
}
|
|
return json($result);
|
|
}
|
|
|
|
} |