简要描述:
- 区域代理信息接口
请求域名:
请求URL:
POST: route=plugin.micro.frontend.controllers.MicroShopApply.apply
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
i | 是 | int | 公众号ID |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"status": 1,
"micro_thumb": "images/2/2017/04/qz46ZDPUd435q6Q6R3R3Qu5DdZIpUD.jpg",
"signature": "",
"levels": [
{
"id": 7,
"uniacid": 2,
"level_weight": 3,
"level_name": "特级微店",
"bonus_ratio": "30.00",
"goods_id": 50,
"created_at": "2017-05-10 16:17:44",
"updated_at": "2017-05-10 16:17:44",
"deleted_at": 0,
"has_one_goods": {
"id": 50,
"uniacid": 2,
"type": 1,
"status": 1,
"display_order": 2222,
"title": "test11",
"thumb": "images/2/2017/04/qz46ZDPUd435q6Q6R3R3Qu5DdZIpUD.jpg",
"thumb_url": null,
"sku": "个",
"description": "",
"content": "",
"goods_sn": "",
"product_sn": "",
"market_price": "123.00",
"price": "123.00",
"cost_price": "123.00",
"stock": 123,
"reduce_stock_method": 0,
"show_sales": 0,
"real_sales": 0,
"weight": "123.00",
"point": null,
"has_option": 0,
"is_new": 0,
"is_hot": 0,
"is_discount": 0,
"is_recommand": 0,
"is_comment": 0,
"is_deleted": 0,
"created_at": "2017-05-03 17:53:12",
"updated_at": "2017-05-03 17:53:12",
"deleted_at": null,
"brand_id": 0,
"is_plugin": 1
}
},
{
"id": 4,
"uniacid": 2,
"level_weight": 2,
"level_name": "一级微店",
"bonus_ratio": "20.00",
"goods_id": 35,
"created_at": "1970-01-01 08:00:00",
"updated_at": "2017-05-10 16:08:26",
"deleted_at": 0,
"has_one_goods": {
"id": 35,
"uniacid": 2,
"type": 1,
"status": 0,
"display_order": 10,
"title": "test1...",
"thumb": "images/2/2017/04/qz46ZDPUd435q6Q6R3R3Qu5DdZIpUD.jpg",
"thumb_url": null,
"sku": "个",
"description": "",
"content": "",
"goods_sn": "",
"product_sn": "",
"market_price": "100.00",
"price": "100.00",
"cost_price": "100.00",
"stock": 94,
"reduce_stock_method": 0,
"show_sales": 6,
"real_sales": 6,
"weight": "100.00",
"point": null,
"has_option": 0,
"is_new": 0,
"is_hot": 0,
"is_discount": 0,
"is_recommand": 0,
"is_comment": 0,
"is_deleted": 0,
"created_at": "2017-04-21 16:51:13",
"updated_at": "2017-05-02 14:28:39",
"deleted_at": null,
"brand_id": 0,
"is_plugin": 1
}
},
{
"id": 5,
"uniacid": 2,
"level_weight": 1,
"level_name": "二级微店",
"bonus_ratio": "10.00",
"goods_id": 46,
"created_at": "2017-05-10 16:06:01",
"updated_at": "2017-05-10 16:13:42",
"deleted_at": 0,
"has_one_goods": {
"id": 46,
"uniacid": 2,
"type": 1,
"status": 1,
"display_order": 2222,
"title": "test11",
"thumb": "images/2/2017/04/qz46ZDPUd435q6Q6R3R3Qu5DdZIpUD.jpg",
"thumb_url": null,
"sku": "个",
"description": "",
"content": "",
"goods_sn": "",
"product_sn": "",
"market_price": "123.00",
"price": "123.00",
"cost_price": "123.00",
"stock": 123,
"reduce_stock_method": 0,
"show_sales": 0,
"real_sales": 0,
"weight": "123.00",
"point": null,
"has_option": 0,
"is_new": 0,
"is_hot": 0,
"is_discount": 0,
"is_recommand": 0,
"is_comment": 0,
"is_deleted": 0,
"created_at": "2017-05-03 17:47:42",
"updated_at": "2017-05-03 17:47:42",
"deleted_at": null,
"brand_id": 0,
"is_plugin": 1
}
}
]
}
}
错误时返回:
{
"result":0,
"msg":"未检测到数据!",
"data": {
}
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
micro_thumb | string | 图片 |
signature | string | 协议 |
levels | array | 等级数组 |
levels->level_name | string | 等级名称 |
levels->has_one_goods ->title | string | 商品名称 |
levels->has_one_goods ->market_price | 商品价格 | |
not_show | string | 等于1,等级变灰不可点击 |
备注:
- 更多返回错误代码请看首页的错误代码描述