简要描述:
- 等级中心
请求URL:
GET:一级域名/index.php?s=/wapapi/addons/execute/addons/microshop/controller/microshop/action/microShopLevelCenter
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|
返回示例:
正确时返回:
{
"code": 0,
"data": [
{
"id": 3,
"website_id": 26,
"level_name": "低级",
"profit1": "1.00",
"profit2": "0.00",
"profit3": "0.00",
"selfpurchase_rebate": "4.00",
"shop_rebate": "5.00",
"term_validity": 2,
"weight": 2,
"goods_id": [
"293",
"294",
"295"
],
"create_time": 1544426495,
"modify_time": 1544605151,
"is_default": 0,
"validity": 2,
"goods_info": [
{
"pic": "http://pic.vslai.com.cn/upload/26/51/common/34679e1b933254b1d50828c4aeea71562.jpg",
"goods_name": "123",
"goods_id": "293",
"price": "12.00"
},
{
"pic": "upload/26/51/common/d241aa0ff162e90d1aed25710c4a04822.jpg",
"goods_name": "qwertyuoipo",
"goods_id": "294",
"price": "1234.00"
},
{
"pic": "upload/26/51/common/d241aa0ff162e90d1aed25710c4a04822.jpg",
"goods_name": "1234567",
"goods_id": "295",
"price": "12344.00"
}
]
},
{
"id": 4,
"website_id": 26,
"level_name": "高级",
"profit1": "2.00",
"profit2": "0.00",
"profit3": "0.00",
"selfpurchase_rebate": "3.00",
"shop_rebate": "4.00",
"term_validity": 2,
"weight": 3,
"goods_id": [
"308",
"307",
"306"
],
"create_time": 1544604562,
"modify_time": 1544605164,
"is_default": 0,
"validity": 3,
"goods_info": [
{
"pic": "upload/26/51/common/d241aa0ff162e90d1aed25710c4a04822.jpg",
"goods_name": "哦哦哦",
"goods_id": "308",
"price": "22.00"
},
{
"pic": "https://pic.vslai.com.cn/upload/26/common/d8aae1f11864d77eda7a61286be6cb922.jpg",
"goods_name": "选运费模板",
"goods_id": "307",
"price": "11.00"
},
{
"pic": "upload/26/51/common/9edbdf8ab2cd8166d2df25998061efbc2.gif",
"goods_name": "ttt",
"goods_id": "306",
"price": "13.00"
}
]
}
]
}
错误时返回:
{
"code": -1,
"message": "获取失败"
}
返回参数说明:
参数名 | 类型 | 说明 | |
---|---|---|---|
level_name | string | 等级名称 | |
selfpurchase_rebate | int | 自购返利 | |
shop_rebate | int | 开店返利 |