简要描述:
- 区域代理信息接口
请求域名:
请求URL:
POST: route=plugin.micro.frontend.controllers.MicroShop.get-goods
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
i | 是 | int | 公众号id |
goods_ids | 是 | string | 商品id字符串逗号分隔 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"status": 1,
"list": [
{
"id": 260,
"uniacid": 2,
"brand_id": 0,
"type": 1,
"status": 1,
"display_order": 9999,
"title": "旅行箱113",
"thumb": "http://test.yunzshop.com/attachment/images/2/2017/04/gEa4uBE8ueurupEbKbC8ZcwU1wUU24.png",
"thumb_url": null,
"sku": "个",
"description": "",
"content": "<p>fgrrr4t8jif4j65g</p>",
"goods_sn": "",
"product_sn": "",
"market_price": "120.00",
"price": "1100.00",
"cost_price": "90.00",
"stock": 1029,
"reduce_stock_method": 0,
"show_sales": 51,
"real_sales": 51,
"weight": "0.00",
"has_option": 0,
"is_new": 0,
"is_hot": 0,
"is_discount": 1,
"is_recommand": 1,
"is_comment": 0,
"is_deleted": 0,
"created_at": "2017-05-18 14:57:59",
"deleted_at": null,
"updated_at": "2017-05-18 20:42:06",
"comment_num": 5,
"is_plugin": 0,
"bonus_money":12.00
}
]
"count":1
}
}
错误时返回:
{
result: 0,
msg: "未找到商品",
data: {
status: -1
}
}
{
result: 0,
msg: "您还不是微店",
data: {
status: -1
}
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
title | string | 商品名称 |
price | string | 价格 |
bonus_money | string | 分红金额 |
count | int | 总数 |
备注:
- 更多返回错误代码请看首页的错误代码描述