【类 型】:fix
【主 题】:支付接口继承 父级的构造函数 【描 述】: [原因]:让支付回调接口跳过身份验证 [过程]: [影响]: 【结 束】 # 类型 包含: # feat:新功能(feature) # fix:修补bug # docs:文档(documentation) # style: 格式(不影响代码运行的变动) # refactor:重构(即不是新增功能,也不是修改bug的代码变动) # test:增加测试 # chore:构建过程或辅助工具的变动
This commit is contained in:
parent
35a4ede2b5
commit
aff3025c7d
@ -14,6 +14,16 @@ class PayController extends PublicController
|
||||
* @description: 子类的初始化
|
||||
*/
|
||||
public function _initialize()
|
||||
{
|
||||
}
|
||||
/**
|
||||
* @description: Yansongda pay类的参数
|
||||
*/
|
||||
protected $config;
|
||||
/**
|
||||
* @description: 发起小程序支付
|
||||
*/
|
||||
public function pay()
|
||||
{
|
||||
//父级构造函数
|
||||
parent::_initialize();
|
||||
@ -45,16 +55,7 @@ class PayController extends PublicController
|
||||
'connect_timeout' => 5.0,
|
||||
],
|
||||
];
|
||||
}
|
||||
/**
|
||||
* @description: Yansongda pay类的参数
|
||||
*/
|
||||
protected $config;
|
||||
/**
|
||||
* @description: 发起小程序支付
|
||||
*/
|
||||
public function pay()
|
||||
{
|
||||
|
||||
//获取订单信息
|
||||
$where['order_sn'] = $_REQUEST['order_sn'];
|
||||
$orderDb = D('order');
|
||||
|
Loading…
Reference in New Issue
Block a user