简要描述:
接口版本:
版本号 |
制定人 |
制定日期 |
修订日期 |
1.0.0 |
孙程 |
2019-09-18 |
|
请求URL:
请求方式:
请求头:
参数名 |
是否必须 |
类型 |
说明 |
Content-Type |
是 |
string |
|
Content-MD5 |
是 |
string |
|
请求参数:
参数名 |
是否必须 |
类型 |
说明 |
token |
是 |
string |
用户授权 |
page |
否 |
int |
请求页,默认1 |
paginate |
否 |
int |
每页条数,默认10 |
month |
否 |
string |
搜索月份,如2019-08 |
返回示例:
正确时返回(例子):
"data": {
"logs": {
"current_page": 1,
"data": [
{
"id": 233,
"serial": "68121568800463207",
"type": 0,
"amount": "7.00",
"balance": "99.00",
"uid": 72,
"desc": "维保查询",
"status": 1,
"create_at": "09-18 17:05",
"update_at": 1568800463,
"way": 0
}
],
"first_page_url": "http://192.168.1.167/chachebaobei/PHP/public/module/api/chachebaobei/transactionlog?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://192.168.1.167/chachebaobei/PHP/public/module/api/chachebaobei/transactionlog?page=1",
"next_page_url": null,
"path": "http://192.168.1.167/chachebaobei/PHP/public/module/api/chachebaobei/transactionlog",
"per_page": "5",
"prev_page_url": null,
"to": 1,
"total": 1
},
"consume": 7,
"topup": 0
}
错误时返回(例子):
{
}
返回参数说明:
参数名 |
类型 |
说明 |
uid |
int |
用户名 |
serial |
array |
交易序列号 |
type |
int |
交易类型:0=消费 1=充值 2=退款 |
amount |
float |
交易金额 |
balance |
float |
交易后账户剩余查车币 |
status |
int |
状态:0=失败 1=成功 |
create_at |
int |
交易时间 |
way |
int |
交易模式 0=在线支付 1=余额支付 |
consume |
float |
消费统计 |
topup |
float |
充值统计 |
备注:
- 更多返回错误代码请看下面
200 请求成功
400 请求失败
文档更新时间: 2020-01-14 11:55 作者:jetsamsun