简要描述:
-余额明细
请求URL:
&route=plugin.shop-assistant.frontend.member.balance-list
请求参数说明:
参数名 | 类型 | 是否必需 | 说明 |
---|---|---|---|
page | int | 否 | 页码 |
search[type] | int | 否 | 变动类型:1增加,2减少 |
search[member] | string | 否 | 搜索会员数据 |
member_id | int | 否 | 会员ID,如需查找特定会员 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "ok",
"data": {
"current_page": 1,
"data": [
{
"id": 60423,
"change_money": "13.00",
"new_money": "125.00",
"type": 1,
"remark": "后台充值13元",
"created_at": "2021-09-17 15:24:49",
"service_type": 1,
"service_type_name": "余额23充值",
"type_name": "收入",
"member": null
},
{
"id": 60422,
"change_money": "100.00",
"new_money": "112.00",
"type": 1,
"remark": "后台充值100元",
"created_at": "2021-09-17 15:21:28",
"service_type": 1,
"service_type_name": "余额23充值",
"type_name": "收入",
"member": null
},
{
"id": 60421,
"change_money": "12.00",
"new_money": "12.00",
"type": 1,
"remark": "后台充值12元",
"created_at": "2021-07-01 13:54:15",
"service_type": 1,
"service_type_name": "余额23充值",
"type_name": "收入",
"member": null
}
],
"first_page_url": "http://yzmall.com/addons/yun_shop/api.php?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://yzmall.com/addons/yun_shop/api.php?page=1",
"next_page_url": null,
"path": "http://yzmall.com/addons/yun_shop/api.php",
"per_page": 20,
"prev_page_url": null,
"to": 3,
"total": 3
}
}
返回参数说明:
参数名 | 类型 | 说明 | |
---|---|---|---|
id | int | id | |
change_money | float | 变动数量 | |
type | int | 变动方式:1增加,-1减少 | |
remark | string | 备注 | |
created_at | string | 时间 | |
new_money | float | 变动后余额值 | |
service_type_name | string | 余额变动类型说明 | |
has_one_member | array | 提现会员信息 |
has_one_member返回参数说明:
参数名 | 类型 | 说明 | |
---|---|---|---|
uid | int | 会员ID | |
avatar | string | 头像 | |
nickname | string | 昵称 |
错误时返回:
{
"result": 0,
"msg": "请登录",
"data": []
}