获取支付通道列表
POST
/myauth/web/getEpay只有admin账号有权限使用
请求参数
Header 参数
token
string
必需
示例值:
ec22762345c74b3c9a1201d092d16e1f
Body 参数application/json
id
integer | null
可选
name
string | null
通道名称
driver
string | null
通道标识
固定值不可修改
config
integer | null
通道配置
content
string | null
通道说明
updateTime
string | null
修改时间
10位时间戳
enabled
string | null
开关
0关闭1开启
pageIndex
integer
页码
pageSize
integer
每页数据行数
orders
array [object {2}]
排序
column
string | null
字段名
必须严格遵守系统返回的字段名,即原样的驼峰命名法
asc
string | null
是否正序排序
示例
{
"pageIndex": 1,
"pageSize": 10,
"orders": [
{
"column": null,
"asc": null
}
],
"content": null,
"id": null,
"enabled": null,
"updateTime": null,
"driver": null,
"config": null,
"name": null
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
success
boolean
必需
msg
string
必需
sign
string
必需
result
object
必需
records
array [object {8}]
必需
total
integer
必需
size
integer
必需
current
integer
必需
orders
array [object {2}]
必需
optimizeCountSql
boolean
必需
searchCount
boolean
必需
countId
null
必需
maxLimit
null
必需
pages
integer
必需
timestamp
integer
必需
示例成功示例
{
"code": 200,
"success": true,
"msg": "获取成功",
"sign": "",
"result": {
"records": [
{
"id": 1,
"name": "微信",
"sort": 1,
"driver": "epay_wxpay",
"config": "[{\"fieldName\":\"url\",\"fieldContent\":\"api地址\",\"fieldText\":\"https://www.baidu.com\"},{\"fieldName\":\"pid\",\"fieldContent\":\"商户ID\",\"fieldText\":\"1001\"},{\"fieldName\":\"key\",\"fieldContent\":\"商户密匙\",\"fieldText\":\"abcde12345\"},{\"fieldName\":\"notify_url\",\"fieldContent\":\"异步通知地址(后端地址)\",\"fieldText\":\"https://www.baidu.com\"},{\"fieldName\":\"return_url\",\"fieldContent\":\"支付成功跳转地址\",\"fieldText\":\"https://www.baidu.com\"}]",
"content": "易支付-微信",
"updateTime": null,
"enabled": 0
},
{
"id": 2,
"name": "支付宝",
"sort": 2,
"driver": "epay_alipay",
"config": "[{\"fieldName\":\"url\",\"fieldContent\":\"api地址\",\"fieldText\":\"https://www.baidu.com\"},{\"fieldName\":\"pid\",\"fieldContent\":\"商户ID\",\"fieldText\":\"1001\"},{\"fieldName\":\"key\",\"fieldContent\":\"商户密匙\",\"fieldText\":\"abcde12345\"},{\"fieldName\":\"notify_url\",\"fieldContent\":\"异步通知地址(后端地址)\",\"fieldText\":\"https://www.baidu.com\"},{\"fieldName\":\"return_url\",\"fieldContent\":\"支付成功跳转地址\",\"fieldText\":\"https://www.baidu.com\"}]",
"content": "易支付-支付宝",
"updateTime": null,
"enabled": 0
},
{
"id": 3,
"name": "QQ",
"sort": 3,
"driver": "epay_qqpay",
"config": "[{\"fieldName\":\"url\",\"fieldContent\":\"api地址\",\"fieldText\":\"https://www.baidu.com\"},{\"fieldName\":\"pid\",\"fieldContent\":\"商户ID\",\"fieldText\":\"1001\"},{\"fieldName\":\"key\",\"fieldContent\":\"商户密匙\",\"fieldText\":\"abcde12345\"},{\"fieldName\":\"notify_url\",\"fieldContent\":\"异步通知地址(后端地址)\",\"fieldText\":\"https://www.baidu.com\"},{\"fieldName\":\"return_url\",\"fieldContent\":\"支付成功跳转地址\",\"fieldText\":\"https://www.baidu.com\"}]",
"content": "易支付-QQ",
"updateTime": null,
"enabled": 0
}
],
"total": 3,
"size": 10,
"current": 1,
"orders": [
{
"column": "",
"asc": true
}
],
"optimizeCountSql": true,
"searchCount": true,
"countId": null,
"maxLimit": null,
"pages": 1
},
"timestamp": 1655048301536
}
最后修改时间: 3 年前