文档
测试

商品属性

GET
https://tao.shenbaba.com/app/index.php?i=2&t=0&v=1.9.13&from=wxapp&c=entry&a=wxapp&m=first_duoduoke&from_uid=&from_act=&do=GetSbbGoodAttr

接口描述

神爸爸属性

请求参数

参数名
类型
描述
必填
goods_id
int
商品id
必填

返回数据

参数名
类型
描述
必填
errno
int
状态,0时正常
必填
message
string
状态消息
必填
data
object
返回数据
必填
goods_id
int
商品id
必填
goods_name
string
商品名称
必填
goods_sn
string
商品编号
必填
goods_thumb
string
商品缩略图
必填
goods_number
int
库存,非多属性商品时以这个参数为准
必填
goods_weight
float
重量,单位KG
必填
market_price
float
市场售价
必填
shop_price
float
本店售价
必填
supplier_id
int
商家id,本字段现未启用
必填
is_recharge
int
是否充值商品,1是0非
必填
is_video
int
是否视频商品,1是0非
必填
is_best
int
是否精品,1是0非
必填
is_new
int
是否新品,1是0非
必填
is_hot
int
是否火热品,1是0非
必填
is_promote
int
是否秒杀商品,1是0非
必填
__goods_genre
int
1外卖,2物流,3虚拟
必填
shipping_fee
float
运费
必填
attribute
object
属性数据,多属性才会存在
可选
attr_id
int
属性栏
可选
attr_name
string
属性栏名称
可选
attrs
object
属性值数据
可选
goods_attr_id
int
属性值id
可选
attr_value
string
属性值名称
可选
attr_price
float
属性值价格,真实价格为用户所选的属性价格之和
可选
product_number
object
属性库存数据
可选
goods_attr
object
属性值id,当用户选中的属性值是该属性id的集合,则product_number就是所选商品的库存
可选
product_number
int
属性库存,不同商品属性不同库存
可选

说明 / 示例

{ "errno": 0, "message": "ok", "data": { "goods_id": "7431", "goods_name": "【全国三网话费】移动联通电信 100-500 话费慢充值72小时内到账", "goods_sn": "FL007431", "goods_thumb": "https://www.shenbaba.com/images/202104/thumb_img/7431_thumb_G_1619148092800.jpg", "goods_number": "12000", "goods_weight": "0.000", "market_price": "100.00", "shop_price": "98.00", "supplier_id": "0", "is_recharge": "1", "is_video": "0", "is_best": "0", "is_new": "0", "is_hot": "0", "is_promote": "0", "__goods_genre": 2, "attribute": [ { "attr_id": "308", "attr_name": "运营商", "attrs": [ { "goods_attr_id": "4863", "attr_value": "电信", "attr_price": "0" }, { "goods_attr_id": "4862", "attr_value": "联通", "attr_price": "0" }, { "goods_attr_id": "4860", "attr_value": "移动", "attr_price": "0" } ] }, { "attr_id": "309", "attr_name": "属性", "attrs": [ { "goods_attr_id": "4865", "attr_value": "100", "attr_price": "98" }, { "goods_attr_id": "4867", "attr_value": "200", "attr_price": "196" }, { "goods_attr_id": "4868", "attr_value": "300", "attr_price": "294" }, { "goods_attr_id": "4869", "attr_value": "500", "attr_price": "490" } ] } ], "product_number": [ { "goods_attr": [ "4860", "4865" ], "product_number": "1000" }, { "goods_attr": [ "4860", "4867" ], "product_number": "1000" }, { "goods_attr": [ "4860", "4868" ], "product_number": "1000" }, { "goods_attr": [ "4860", "4869" ], "product_number": "1000" }, { "goods_attr": [ "4862", "4865" ], "product_number": "1000" }, { "goods_attr": [ "4862", "4867" ], "product_number": "1000" }, { "goods_attr": [ "4862", "4868" ], "product_number": "1000" }, { "goods_attr": [ "4862", "4869" ], "product_number": "1000" }, { "goods_attr": [ "4863", "4865" ], "product_number": "1000" }, { "goods_attr": [ "4863", "4867" ], "product_number": "1000" }, { "goods_attr": [ "4863", "4868" ], "product_number": "1000" }, { "goods_attr": [ "4863", "4869" ], "product_number": "1000" } ] } }