简要描述:

-搜索商品

请求域名:

  • http://xx.com

请求URL:

plugin.new-blind-box.frontend.activity.search-activity-goods

请求参数说明:

参数名 类型 是否必需 说明
id int 盲盒id
level_id int 盲盒等级id
search[goods_keyword] string 搜索关键词

返回示例:

正确时返回:

{
	result: 1,
	msg: "",
	data: {
		goods: [
			{
				goods_id: 92719,
				title: "爱心值队列--购物赠送统一比例",
				goods_option_id: 0,
				goods_option_title: "",
				price: "99.99",
				stock: 200,
				thumb: "https://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2021/12/e8ad20ec3ca2da7fe6d6fbb3c5504872.png",
				plugin_id: 0
			},
			{
				goods_id: 93488,
				title: "下单签署测试",
				goods_option_id: 0,
				goods_option_title: "",
				price: "1.00",
				stock: 995,
				thumb: "https://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2022/08/677413edad289a98df7e72154b34ee6b.jpeg",
				plugin_id: 0
			}
		]
	}
}

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

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

goods 返回参数说明:商品列表数据

参数名 类型 说明
goods_id int 商品id
title string 商品名称
goods_option_id int 商品规格id
goods_option_title string 商品规格名称
price float 商品价格
stock int 商品库存
thumb string 商品图片

备注:

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