简要描述:
- 区域代理信息接口
请求域名:
请求URL:
POST: route=plugin.micro.frontend.controllers.MicroShop.default
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
i | 是 | int | 公众号ID |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"ads": [
{
"id": 3,
"uniacid": 2,
"slide_name": "123asd",
"link": "",
"thumb": "http://sp.com/attachment/images/2/2017/05/zz6Z1cc5v4h1s0SC6KYvC8X0kCiXk1.jpg",
"display_order": 1,
"enabled": 1,
"is_carousel": 0,
"created_at": "2017-05-16 11:33:24",
"updated_at": "2017-05-18 15:48:14",
"deleted_at": 0
}
],
"carousel": [
{
"id": 2,
"uniacid": 2,
"slide_name": "sdsdf",
"link": "",
"thumb": "http://sp.com/attachment/images/2/2017/05/zEBoqXtqkCJoU0zR7xkxkOcQxcPP75.jpg",
"display_order": 1,
"enabled": 1,
"is_carousel": 1,
"created_at": "2017-05-16 11:22:04",
"updated_at": "2017-05-16 11:22:04",
"deleted_at": 0
}
],
"category": [
{
"id": 1,
"uniacid": 2,
"name": "母婴",
"thumb": "",
"parent_id": 0,
"description": "",
"display_order": 7,
"enabled": 1,
"is_home": 1,
"adv_img": "",
"adv_url": "",
"level": 1,
"advimg_pc": "",
"advurl_pc": "",
"created_at": "2017-03-17 14:43:24",
"updated_at": null,
"deleted_at": null
},
{
"id": 3,
"uniacid": 2,
"name": "yitian_1",
"thumb": "",
"parent_id": 0,
"description": "",
"display_order": 6,
"enabled": 1,
"is_home": 0,
"adv_img": "http://sp.com/attachment/images/2/2016/08/SO5AdAZ96AG3A0gmS8fRW8I3g38iI3.jpg",
"adv_url": "",
"level": 1,
"advimg_pc": "",
"advurl_pc": "",
"created_at": "2017-03-17 14:43:24",
"updated_at": null,
"deleted_at": null
},
{
"id": 5,
"uniacid": 2,
"name": "yitian_1_1",
"thumb": "http://sp.com/attachment/images/2/2016/08/t3N83DZG29d9S5nZNd2SXIDEMF853M.jpg",
"parent_id": 3,
"description": "",
"display_order": 2,
"enabled": 1,
"is_home": 1,
"adv_img": "",
"adv_url": "",
"level": 2,
"advimg_pc": "",
"advurl_pc": "",
"created_at": "2017-03-17 14:43:24",
"updated_at": null,
"deleted_at": null
},
{
"id": 24,
"uniacid": 2,
"name": "dasd",
"thumb": "",
"parent_id": 1,
"description": "",
"display_order": 0,
"enabled": 1,
"is_home": 0,
"adv_img": "",
"adv_url": "",
"level": 2,
"advimg_pc": "",
"advurl_pc": "",
"created_at": "2017-03-17 14:43:24",
"updated_at": null,
"deleted_at": null
}
],
"set": {
"cat_level": "2",
"cat_adv_img": "",
"cat_adv_url": ""
},
"goods": [
{
"goods_id": 35,
"thumb": "http://sp.com/attachment/images/2/2017/04/qz46ZDPUd435q6Q6R3R3Qu5DdZIpUD.jpg",
"title": "test1...",
"price": "100.00",
"market_price": "100.00"
},
{
"goods_id": 44,
"thumb": "images/2/2017/04/qz46ZDPUd435q6Q6R3R3Qu5DdZIpUD.jpg",
"title": "234",
"price": "456.00",
"market_price": "456.00"
},
{
"goods_id": 61,
"thumb": "images/2/2017/05/zEBoqXtqkCJoU0zR7xkxkOcQxcPP75.jpg",
"title": "123123",
"price": "1.00",
"market_price": "1.00"
}
],
"shop_avatar": "http://sp.com/attachment/images/2/2017/05/Iyh2eGuJYc22ya6yYhUyKkXjwhpxyk.jpg",
"nickname": "碳酸果汁",
"signature": "个性签名"
}
}
错误时返回:
{
"result":0,
"msg":"未检测到数据!",
"data": {
}
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
carousel | string | 广告位 |
shop_avatar | string | 店铺头像 |
nickname | array | 昵称 |
signature | string | 个性签名 |
其他和商城首页结构一样
备注:
- 更多返回错误代码请看首页的错误代码描述