简要描述:

盲盒-获取抽中的盲盒商品

请求域名:

  • http://xx.com

请求URL:

POST/plugin.blind-box.api.index.blind-box-goods

传递参数:

参数名 是否必须 类型 说明
order_id int 订单id

返回参数说明:

参数名 类型 说明
goods array 商品信息
goods[id] int 商品id
goods[title] title 商品名
goods[has_option] int 商品是否开启规格,0关闭,1开启
goods[price] float 商品价格
goods][thumb string 商品图片(绝对地址thumb_src)
combination array 组合商品信息(当活动商品为组合商品时存在)
combination[id] int 组合商品id
combination[combination_name] string 组合商品名
combination[combination_img] string 组合商品图片(绝对地址combination_img_src)
combination[price] int 组合商品售价
combination[combination_goods] array 组合商品里的商品信息(字段与goods[goods]里一致)

返回示例:

正确时返回的数据:

{
	"result": 1,
	"msg": "ok",
	"data": {
		"activityGoods": {
			"id": 18,
			"activity_id": 1,
			"pattern": 0,
			"goods_id": 20,
			"goods_option_id": 15,
			"stock": 14,
			"created_at": "2021-03-11 10:31:55",
			"updated_at": null,
			"thumb": "images/1/2019/04/kC95a1h4eEA8z9eHc5feFFE5aEA57c.jpg",
			"goods_option_title": "季卡",
			"plugin_id": 0,
			"thumb_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/04/kC95a1h4eEA8z9eHc5feFFE5aEA57c.jpg",
			"goods_options": {
				"id": 15,
				"goods_id": 20,
				"title": "季卡",
				"thumb": "",
				"product_price": "2500.00",
				"stock": 14
			},
			"goods": {
				"id": 20,
				"title": "测试1",
				"price": "1000.00",
				"stock": 34,
				"has_option": 1,
				"status": 1,
				"thumb": "images/1/2019/04/kC95a1h4eEA8z9eHc5feFFE5aEA57c.jpg",
				"thumb_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2019/04/kC95a1h4eEA8z9eHc5feFFE5aEA57c.jpg"
			}
		}
	}
}

错误时返回:

{
	"result": 0,
	"msg": "",
	"data": []
}

备注:

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