接口说明
获取商品的充值参数(仅支持充值类商品)
接口地址
/api/product/recharge-params
传入参数
名称 | 类型 | 必须 | 描述 |
---|---|---|---|
product_id | int | true | 商品编号 |
返回数据
参数名 | 类型 | 说明 |
---|---|---|
recharge_account_label | string | 充值账号类型名称 |
recharge_params | json | 充值参数 |
示例
{
"code": "ok",
"message": "",
"data": {
"recharge_account_label": "QQ号",
"recharge_params": [{
"name": "文本参数",
"type": "text",
"options": ""
}, {
"name": "密码参数",
"type": "password",
"options": ""
}, {
"name": "下拉菜单",
"type": "select",
"options": "选项一,选项二"
}, {
"name": "单选项",
"type": "radio",
"options": "选项一,选项二"
}]
}
}