钩子介绍
订单弹窗数据过滤钩子qcbox/uce/pay_opendata_filter
主要用于在弹出支付对话框时,将额外支付参数添加到主数据中。
钩子参数
qcbox/uce/pay_opendata_filter
包含三个参数
- $data
- title:订单数据
- type:array
{
"titles": "付费下载",
"title": "LifterLMS",
"price": "18.88",
"oprice": "28.88",
"postid": 12602,
"time": 1732017929,
"suc_url": "http:\/\/127.0.0.1\/12602.html",
"can_url": "http:\/\/127.0.0.1\/12602.html",
"ucurl": "http:\/\/127.0.0.1\/user\/self\/order\/vorder",
"duration": "2",
"type": "prdata",
"ctype": "1",
"currency": "money",
"vip": {
"vip": "vip1",
"price": "8.88"
},
"commission_type": "prdata_1"
}
- $other
- title:扩展数据
- type:array
{
"duration": 1
}
- $type
- title:订单类型
- type:string
prdata_1
钩子源码
源码位置:qctoolbox\module\user-center-extension\admin\pay.class.php:374
$data = apply_filters( 'qcbox/uce/pay_opendata_filter', $data, $other, $type );