简要描述:

-查看盲盒商品

请求域名:

  • http://xx.com

请求URL:

plugin.new-blind-box.frontend.activity.activity-level

请求参数说明:

参数名 类型 是否必需 说明
id int 盲盒id

返回示例:

正确时返回:

{
	result: 1,
	msg: "",
	data: {
		list: [
			{
				id: 1,
				uniacid: 1,
				level_name: "初级商品",
				level_img: "images/attachment/1/2022/09/黑米杂粮馒头.png",
				probability: 80,
				sort: 0,
				exchange_type: 1,
				exchange_num: 20,
				created_at: "2022-11-01 15:13:18",
				updated_at: "2022-11-01 15:13:18",
				level_img_src: "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/attachment/1/2022/09/黑米杂粮馒头.png",
				exchange_type_name: "积分abc",
				pivot: {
					activity_id: 1,
					level_id: 1,
					total: 2
				}
			},
			{
				id: 2,
				uniacid: 1,
				level_name: "中级商品",
				level_img: "images/1/2022/09/8580329cbaa1c4b3c04dd83e8d0217ec.png",
				probability: 15,
				sort: 0,
				exchange_type: 1,
				exchange_num: 50,
				created_at: "2022-11-01 15:13:37",
				updated_at: "2022-11-01 15:14:18",
				level_img_src: "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2022/09/8580329cbaa1c4b3c04dd83e8d0217ec.png",
				exchange_type_name: "积分abc",
				pivot: {
					activity_id: 1,
					level_id: 2,
					total: 2
				}
			},
			{
				id: 3,
				uniacid: 1,
				level_name: "高级商品",
				level_img: "images/attachment/1/2022/09/鸡汤豆腐串.png",
				probability: 4,
				sort: 0,
				exchange_type: 1,
				exchange_num: 100,
				created_at: "2022-11-01 15:14:01",
				updated_at: "2022-11-01 15:14:32",
				level_img_src: "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/attachment/1/2022/09/鸡汤豆腐串.png",
				exchange_type_name: "积分abc",
				pivot: {
					activity_id: 1,
					level_id: 3,
					total: 1
				}
			}
		]
	}
}

错误时返回:(#如返回未绑定手机号并带status,跳转到绑定手机号页面)

{
    "result": 0,
    "msg": "参数错误",
    "data": []
}

list 返回参数说明:等级列表数据

参数名 类型 说明
id int 等级id
level_name string 等级名称
level_img_src string 等级图片
probability string 概率
pivot.total int 该等级可选商品数量

备注:

  • 更多返回错误代码请看首页的错误代码描述