设置支付方式
开发中POST
/adminapi/setting.pay.payWay/setPayWay请求参数
Header 参数
token
string
可选
示例值:
{{adminToken}}
Body 参数application/json
2
array [object {6}]
必需
id
integer
可选
pay_config_id
integer
可选
scene
integer
可选
is_default
integer
可选
status
integer
可选
icon
string
可选
3
array [object {6}]
必需
id
integer
必需
pay_config_id
integer
必需
scene
integer
必需
is_default
integer
必需
status
integer
必需
icon
string
必需
5
array [object {6}]
必需
id
integer
必需
pay_config_id
integer
必需
scene
integer
必需
is_default
integer
必需
status
integer
必需
icon
string
必需
示例
{
"2": [
{
"id": 1,
"pay_config_id": 3,
"scene": 2,
"is_default": 1,
"status": 1,
"icon": "http://www.php-ws.localhost/resource/image/adminapi/default/alipay.png"
}
],
"3": [
{
"id": 2,
"pay_config_id": 2,
"scene": 3,
"is_default": 1,
"status": 1,
"icon": "http://www.php-ws.localhost/resource/image/adminapi/default/wechat_pay.png"
},
{
"id": 3,
"pay_config_id": 3,
"scene": 3,
"is_default": 0,
"status": 1,
"icon": "http://www.php-ws.localhost/resource/image/adminapi/default/alipay.png"
}
],
"5": [
{
"id": 4,
"pay_config_id": 2,
"scene": 5,
"is_default": 1,
"status": 1,
"icon": "http://www.php-ws.localhost/resource/image/adminapi/default/wechat_pay.png"
},
{
"id": 5,
"pay_config_id": 3,
"scene": 5,
"is_default": 0,
"status": 1,
"icon": "http://www.php-ws.localhost/resource/image/adminapi/default/alipay.png"
}
]
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
show
integer
必需
msg
string
必需
data
object
必需
2
array [object {6}]
必需
3
array [object {6}]
必需
5
array [object {6}]
必需
示例
{
"code": 1,
"show": 0,
"msg": "获取成功",
"data": {
"2": [
{
"id": 1,
"pay_config_id": 3,
"scene": 2,
"is_default": 1,
"status": 1,
"icon": "http://www.php-ws.localhost/resource/image/adminapi/default/alipay.png"
}
],
"3": [
{
"id": 2,
"pay_config_id": 2,
"scene": 3,
"is_default": 1,
"status": 1,
"icon": "http://www.php-ws.localhost/resource/image/adminapi/default/wechat_pay.png"
},
{
"id": 3,
"pay_config_id": 3,
"scene": 3,
"is_default": 0,
"status": 1,
"icon": "http://www.php-ws.localhost/resource/image/adminapi/default/alipay.png"
}
],
"5": [
{
"id": 4,
"pay_config_id": 2,
"scene": 5,
"is_default": 1,
"status": 1,
"icon": "http://www.php-ws.localhost/resource/image/adminapi/default/wechat_pay.png"
},
{
"id": 5,
"pay_config_id": 3,
"scene": 5,
"is_default": 0,
"status": 1,
"icon": "http://www.php-ws.localhost/resource/image/adminapi/default/alipay.png"
}
]
}
}
最后修改时间: 1 年前