简要描述:
请求域名:
请求URL:
POST:plugin.agent-enquiry.Frontend.controllers.agent.index
参数:
参数名 |
是否必须 |
类型 |
说明 |
page |
否 |
int |
页数 |
area_id |
是 |
int |
区域ID |
level |
是 |
int |
区域等级 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "ok",
"data": {
"agents": {
"total": 9,
"per_page": 2,
"current_page": 1,
"last_page": 5,
"next_page_url": "http://dev4.yunzmall.com/addons/yun_shop/api.php?=2",
"prev_page_url": null,
"from": 1,
"to": 2,
"data": [
{
"id": 42,
"member_id": 966,
"status": 1,
"agent_level": 1,
"status_name": "通过",
"level_name": "省代理",
"rate": "20",
"has_one_member": {
"uid": 966,
"nickname": "13245678911",
"avatar": "/addons/yun_shop/static/images/photo-mr.jpg",
"avatar_image": "http://dev4.yunzmall.com/addons/yun_shop/static/images/photo-mr.jpg",
"username": "13245678911"
}
},
{
"id": 41,
"member_id": 979,
"status": 1,
"agent_level": 1,
"status_name": "通过",
"level_name": "省代理",
"rate": "20",
"has_one_member": {
"uid": 979,
"nickname": "13245678916",
"avatar": "/addons/yun_shop/static/images/photo-mr.jpg",
"avatar_image": "http://dev4.yunzmall.com/addons/yun_shop/static/images/photo-mr.jpg",
"username": "13245678916"
}
}
]
},
"area": "广东省",
"role": "省代理",
"total": 9
}
}
返回参数说明:
参数名 |
类型 |
说明 |
result |
int |
0:失败,1:成功 |
msg |
string |
提示消息 |
data |
array |
返回数据 |
返回参数 data 说明:
参数名 |
类型 |
说明 |
agents |
array |
代理 |
area |
string |
区域面包屑 |
role |
string |
角色 |
total |
int |
总数 |
返回参数 data.agents.has_one_member 说明:
参数名 |
类型 |
说明 |
nickname |
string |
昵称 |
avatar_image |
string |
头像 |
备注: