简要描述:
请求域名:
- http://xx.com
请求URL:
route=plugin.debt-shop.admin.credit.debtorIndex
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
is_json | 否 | int | 不传进入页面模板文件,传1获取接口数据 |
page | 是 | int | 页 |
uid | 否 | int | 会员ID |
member_kwd | 否 | string | 会员昵称/姓名/手机 |
amount_type | 否 | int | 提货券类型 1冻结提货券 2可用提货券 |
change_type | 否 | int | 业务类型 |
time_arr | 否 | arr | 时间戳 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"current_page": 1,
"data": [
{
"created_at": "2022-03-28 16:47:48",
"uid": 164935,
"has_one_member": {
"uid": 164935,
"nickname": "13*******18",
"avatar": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.jj20.com%2Fup%2Fallimg%2F4k%2Fs%2F02%2F2109242332225H9-0-lp.jpg&refer=http%3A%2F%2Fimg.jj20.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1648801528&t=b4799f132cb208cd29e5ce7c360c8ce0",
"avatar_image": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.jj20.com%2Fup%2Fallimg%2F4k%2Fs%2F02%2F2109242332225H9-0-lp.jpg&refer=http%3A%2F%2Fimg.jj20.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1648801528&t=b4799f132cb208cd29e5ce7c360c8ce0",
"username": "13*******18"
},
"amount_type": 4,
"amount_type_name": "冻结债务人收入",
"change_type": 1,
"change_type_name": "未知",
"order_id": 22270,
"order_sn": "SN2203181005AA3E92",
"member_type_name": "债务人",
"before_amount": "10.00",
"change_amount": "20.00",
"after_amount": "30.00"
}
],
"first_page_url": "http://zouye.yunzmall.com/admin/shop?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://zouye.yunzmall.com/admin/shop?page=1",
"next_page_url": null,
"path": "http://zouye.yunzmall.com/admin/shop",
"per_page": 15,
"prev_page_url": null,
"to": 1,
"total": 1,
"amount_type": {
"3": "采购金",
"4": "冻结债务人收入",
"5": "可用债务人收入"
},
"change_type": {
"1": {
"name": "订单增加债务人冻结收入",
"source": 3,
"amount_type": 4,
"member_type": 2
},
"2": {
"name": "订单退款扣除债务人冻结收入",
"source": 3,
"amount_type": 4,
"member_type": 2
},
"3": {
"name": "扣除债务人可用收入转为采购金",
"source": 3,
"amount_type": 5,
"member_type": 2
},
"4": {
"name": "后台充值采购金(收入转换)",
"source": 2,
"amount_type": 3,
"member_type": 2
},
"5": {
"name": "后台充值采购金",
"source": 2,
"amount_type": 3,
"member_type": 2
},
"8": {
"name": "扣除债务人冻结收入转为可用收入",
"source": 3,
"amount_type": 4,
"member_type": 2
},
"9": {
"name": "债务人可用收入增加",
"source": 3,
"amount_type": 5,
"member_type": 2
}
}
}
}
错误时返回:
{
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
名称 | 类型 | 说明 |
data.change_type | object | 业务类型 |
data.amount_type | object | 金额类型 |
data.data[].uid | int | 变动会员ID |
data.data[].has_one_member | int | 变动会员信息 |
data.data[].amount_type | int | 金额类型 |
data.data[].amount_type_name | string | 金额类型名 |
data.data[].change_type | int | 业务类型 |
data.data[].change_type_name | string | 业务类型名 |
data.data[].order_id | ID | 订单ID,为0时表示没有关联订单 |
data.data[].order_sn | string | 订单号,为空字符串时表示没有关联订单 |
data.data[].member_type_name | string | 身份名 |
data.data[].before_amount | float | 变动前金额 |
data.data[].change_amount | float | 变动金额 |
data.data[].after_amount | float | 变动后金额 |