跳转到内容

商品详情

POST app/cakeapp/getProductDetail

product_id 商品id 必填

cake_product 部分:

参数名 类型 示例值 说明
images[] array [] banner轮播图列表
images[id] string 1252538 banner轮播图片id
images[m_path] string https://img.dangaoss.com/public/p/89/14/1252538_l.jpg banner轮播中图地址
images[m_width] string 320 banner轮播中图宽度
images[m_height] string 320 banner轮播中图高度
images[l_path] string https://img.dangaoss.com/public/m/89/14/1252538_l.jpg banner轮播大图地址
images[l_width] string 640 banner轮播大图宽度
images[l_height] string 640 banner轮播大图高度
images[s_path] string https://img.dangaoss.com/public/p/90/15/1252539_s.jpg banner轮播小图地址
content_images[] array [] 图文详情图列表
content_images[id] string 1252538 图文详情图片id
content_images[m_path] string https://img.dangaoss.com/public/p/89/14/1252538_l.jpg 图文详情中图地址
content_images[m_width] string 320 图文详情中图宽度
content_images[m_height] string 320 图文详情中图高度
content_images[l_path] string https://img.dangaoss.com/public/m/89/14/1252538_l.jpg 图文详情大图地址
content_images[l_width] string 640 图文详情大图宽度
content_images[l_height] string 640 图文详情大图高度
content_images[s_path] string https://img.dangaoss.com/public/p/90/15/1252539_s.jpg 图文详情小图地址
specs[] array [] 商品规格列表
specs[id] string 1162869 规格id
specs[product_id] string 1313087 商品id
specs[name] string 2磅 规格名称
specs[description] string 该规格适用于重口味小伙伴 规格描述
specs[price] string 188.00 规格价格
specs[market_price] string 188.00 规格市场价
specs[clearing_price] string 188.30 规格结算价
specs[gift] string 雪人糖 赠品
specs[tastes] string 香草味,草莓味,朗姆味,巧克力味 口味(“,”分割格式)
specs[tastesArr] array [] 口味(数组格式)
specs[created_at] string 2019-10-31 15:42:02 创建时间
specs[promotion_id] string 1162869 活动id
specs[promotion_start_at] string 2019-10-31 15:42:02 活动开始时间
specs[promotion_end_at] string 2019-10-31 15:42:02 活动结束时间
brand object {} 品牌
brand[id] string 10290 品牌id
brand[name] string 幸福西饼 品牌名称
brand[description] string 好品牌 品牌描述
brand[image_id] string 1029292 品牌图片id
brand[image_path] string https://img.dangaoss.com/public/b/69/35/1220739_s.jpg 品牌图片地址
brand[is_type] int 0 0正常 1特殊
product object {} 商品信息
product[id] string 1313087 商品id
product[cat_id] string 1 所属分类:1-蛋糕,5-零食小吃,8-鲜花
product[is_yushou] int 1 是否是预售商品,1代表预售商品,默认0
product[is_greeting] int 1 是否支持祝福语配置 0支持 1不支持
product[image_path] string https://img.dangaoss.com/l.jpg 图片路径
product[image_width] string 320 图片宽度
product[image_height] string 320 图片高度
product[title] string 四重奏 商品名称
product[description] string 榴莲、芒果、巧克力、提拉米苏,多重享受一次到“味” 商品信息
product[comment_count] string 0 评论次数
product[like_count] string 0 喜欢次数
product[buy_count] string 0 购买次数
product[status] string 1 状态:0-未发布,1-已发布
product[market_price] string 188.00 市场价
product[price] string 188.00 售价
product[can_take] string 188 是否可自提:0-否,1-是
product[can_ship] string 188 是否可配送:0-否,1-是
product[distribution_rule_id] string 3090 配规id
product[can_buy] string 1 是否可买
product[extra_data] object {} 商品口味、材料等信息(即将弃用)
product[extra_data][distrubtion] string 北京市五环内免费配送 配规描述
product[extra_data][material] string 鸡蛋、奶油、小麦粉、芒果、榴莲肉等 商品材料
product[extra_data][taste] string 芒果 口感
product[extra_data][sweetness] string 2 甜度
product[extra_data][sweetness_text] string 星星越多越甜哦~

常规部分:

字段 名称
id 中台商品id
title 商品名称
image_url 商品主图
source 来源 0中台 1云仓(聚合供应链) 2京东 6阿里 7天猫
agreement_price 协议价
guide_price 指导价
activity_price 营销价
market_price 市场价
sale_price 销售价
stock 库存
sales 销量
sn 商品编号
is_display 上下架 0下1上
desc 商品描述
unit 商品单位
barcode 商品条码
gallery 商品组图 array
detail_images 商品详情
attrs 商品属性 array
skus 商品规格 array
brand 商品品牌 array
category_1 一级分类 array
category_2 二级分类 array
category_3 三级分类 array
freight_type 0 固定运费,1 运费模板 2第三方运费 3包邮
tax_code 税收分类编码
tax_product_name 税收商品名称
tax_short_name 税收分类简称
tax_option 规格型号
tax_unit 单位
favorable_policy 优惠政策
free_of_tax 正常税率1出口免税和其他免税优惠政策2不征增值税3普通零税率
is_favorable_policy 是否使用优惠政策
short_code 商品简码
tax_measure_price 税收计量单位
tax_rate 税率
is_tax_logo 含税标志

gallery:

type 1图片 目前只有1
src 路径

attrs:

name 属性名称
value 属性值

skus:

id 规格id
title 规格名称
origin_price
guide_price 指导价
activity_price 营销价格
stock 库存
product_id 商品id
options
price *协议价*
tax_code 税收分类编码
tax_product_name 税收商品名称
tax_short_name 税收分类简称
tax_option 规格型号
tax_unit 单位
favorable_policy 优惠政策
free_of_tax 正常税率1出口免税和其他免税优惠政策2不征增值税3普通零税率
is_favorable_policy 是否使用优惠政策
short_code 商品简码
tax_measure_price 税收计量单位
tax_rate 税率
is_tax_logo 含税标志

options

spec_name 规格名称
spec_item_name 规格名称

category:

id 分类的
name 分类名称
{
"id":151458,
"created_at":1670492026,
"updated_at":1670492026,
"title":"23年海鲜港3998型-盛世祥和",
"origin_price":399800,
"guide_price":399800,
"price":281379,
"cost_price":275862,
"activity_price":399800,
"min_buy_qty":0,
"stock":999999999,
"sales":0,
"feedback_rate":0,
"sn":"",
"code":"",
"is_new":0,
"is_recommend":0,
"is_hot":0,
"is_promotion":0,
"is_display":1,
"status_lock":0,
"single_option":1,
"desc":"海鲜",
"image_url":"[https://dgss-oss-zs.oss-cn-beijing.aliyuncs.com/product/product_20221017120319_759.jpg](https://dgss-oss-zs.oss-cn-beijing.aliyuncs.com/product/product_20221017120319_759.jpg)",
"video_url":"",
"unit":"单位",
"barcode":"",
"long":0,
"wide":0,
"high":0,
"volume":0,
"freight":0,
"freight_type":2,
"maxPrice":281379,
"minPrice":281379,
"maxCostPrice":0,
"minCostPrice":0,
"maxOriginPrice":0,
"minOriginPrice":0,
"gallery":[
{
"type":1,
"src":"[https://dgss-oss-zs.oss-cn-beijing.aliyuncs.com/product/product_20221017120319_759.jpg?x-oss-process=style/m_img_640](https://dgss-oss-zs.oss-cn-beijing.aliyuncs.com/product/product_20221017120319_759.jpg?x-oss-process=style/m_img_640)"
},
{
"type":1,
"src":"[https://dgss-oss-zs.oss-cn-beijing.aliyuncs.com/product/product_20221017120321_868.jpg?x-oss-process=style/m_img_640](https://dgss-oss-zs.oss-cn-beijing.aliyuncs.com/product/product_20221017120321_868.jpg?x-oss-process=style/m_img_640)"
}
],
"qualifications":null,
"detail_images":"",
"attrs":null,
"skus":[
{
"id":2743315,
"created_at":1670492026,
"updated_at":1670492026,
"title":"海鲜港3998型-盛世祥和",
"price":284192,
"cost_price":284192,
"origin_price":399800,
"guide_price":399800,
"activity_price":399800,
"stock":999999,
"weight":0,
"is_display":0,
"product_id":151458,
"supplier_id":0,
"code":"",
"sn":"",
"barcode":"",
"image_url":"",
"options":[
{
"spec_name":"规格",
"spec_item_name":"海鲜港3998型-盛世祥和"
}
],
"original_sku_id":1205813,
"describe":"",
"tax_code":"",
"tax_product_name":"",
"tax_short_name":"",
"tax_option":"",
"tax_unit":"",
"favorable_policy":"",
"is_favorable_policy":0,
"free_of_tax":0,
"short_code":"",
"tax_measure_price":0,
"tax_rate":0,
"is_tax_logo":0
}
],
"supplier":{
"id":0,
"name":""
},
"gather_supply":{
"id":0,
"name":"",
"key":"",
"category_id":0
},
"ali_product":{
"id":0,
"created_at":null,
"updated_at":null,
"product_id":0,
"sku_id":0,
"ali_sku_id":"",
"ali_product_id":0,
"shop_id":""
},
"brand_id":0,
"brand":{
"id":0,
"created_at":null,
"updated_at":null,
"name":""
},
"supplier_id":0,
"gather_supply_id":14,
"category1_id":3532,
"category2_id":3533,
"category3_id":3534,
"freight_template_id":0,
"source":110,
"sort":0,
"source_goods_id":1334631,
"location_id":0,
"freeze":0,
"shop_level":0,
"des_level":0,
"express_level":0,
"level":0,
"child_title":"",
"bill_position":1,
"md5":"",
"tax_code":"",
"tax_product_name":"",
"tax_short_name":"",
"tax_option":"",
"tax_unit":"",
"favorable_policy":"",
"is_favorable_policy":0,
"free_of_tax":0,
"short_code":"",
"tax_measure_price":0,
"tax_rate":0,
"is_tax_logo":0,
"product_verify":{
"id":0,
"created_at":null,
"updated_at":null,
"product_id":0,
"supplier_id":0,
"status":0,
"is_display":0
},
"is_plugin":1,
"is_single_order":0,
"supplier_source_id":0,
"supplier_source_category_id":0,
"agreement_price":284192,
"cake_product":{
"id":"1334631",
"created_at":1670492026,
"updated_at":1670492026,
"brand_id":"102706",
"brand_name":"非尝食客",
"flag_id":"",
"flag_path":"",
"cat_id":"5",
"image_path":"[https://dgss-oss-zs.oss-cn-beijing.aliyuncs.com/product/product_20221017120319_759.jpg](https://dgss-oss-zs.oss-cn-beijing.aliyuncs.com/product/product_20221017120319_759.jpg)",
"image_width":"",
"image_height":"",
"title":"23年海鲜港3998型-盛世祥和",
"description":"海鲜",
"ship_info":"",
"comment_count":"0",
"comment_score1":"0",
"comment_score3":"0",
"comment_score5":"0",
"like_count":"0",
"buy_count":"0",
"published_at":"",
"status":"1",
"is_display":1,
"market_price":"3998.00",
"distribution_rule_id":"5550",
"price":"3998.00",
"extra_data":{
"material":"",
"taste":"",
"sweetness":"",
"storage":"",
"package":"",
"distrubtion":"",
"sweetness_text":""
},
"set_ship_time":"0",
"can_take":"0",
"can_ship":"0",
"stable_type":"1",
"product_angle":null,
"diy":"0",
"channel_valid_to":"",
"label_name":"",
"is_greeting":"0",
"can_buy":1,
"flag":"",
"show_map":0,
"specs_json":"[{"id":"1205813","product_id":"1334631","name":"海鲜港3998型-盛世祥和","description":"","price":"3998.00","market_price":"3998.00","clearing_price":2758.62,"gift":"","created_at":"2022-10-20 19:25:05","normal_price":null,"have_ship_time":"0","is_price":"0","distribution_rule_id":null,"deleted":"0","red_packet":"-1","stock":"-9999999","sort":"0","tastes":"","sku":"","spec_img":null,"updated_at":"","is_up":"0","can_buy":1,"promotion_start_at":"","promotion_end_at":"","promotion_id":""}]",
"images":null,
"content_images":null,
"specs":null,
"is_yushou":0,
"local_product":{
"id":0,
"created_at":null,
"updated_at":null,
"title":"",
"origin_price":0,
"guide_price":0,
"price":0,
"cost_price":0,
"activity_price":0,
"min_buy_qty":0,
"stock":0,
"sales":0,
"feedback_rate":0,
"sn":"",
"code":"",
"is_new":0,
"is_recommend":0,
"is_hot":0,
"is_promotion":0,
"is_display":0,
"status_lock":0,
"single_option":0,
"desc":"",
"image_url":"",
"video_url":"",
"unit":"",
"barcode":"",
"long":0,
"wide":0,
"high":0,
"volume":0,
"freight":0,
"freight_type":0,
"maxPrice":0,
"minPrice":0,
"maxCostPrice":0,
"minCostPrice":0,
"maxOriginPrice":0,
"minOriginPrice":0,
"gallery":null,
"qualifications":null,
"detail_images":"",
"attrs":null,
"supplier":{
"id":0,
"name":""
},
"gather_supply":{
"id":0,
"name":"",
"key":"",
"category_id":0
},
"ali_product":{
"id":0,
"created_at":null,
"updated_at":null,
"product_id":0,
"sku_id":0,
"ali_sku_id":"",
"ali_product_id":0,
"shop_id":""
},
"brand_id":0,
"brand":{
"id":0,
"created_at":null,
"updated_at":null,
"name":""
},
"supplier_id":0,
"gather_supply_id":0,
"category1_id":0,
"category2_id":0,
"category3_id":0,
"freight_template_id":0,
"source":0,
"sort":0,
"source_goods_id":0,
"location_id":0,
"freeze":0,
"shop_level":0,
"des_level":0,
"express_level":0,
"level":0,
"child_title":"",
"bill_position":0,
"md5":"",
"tax_code":"",
"tax_product_name":"",
"tax_short_name":"",
"tax_option":"",
"tax_unit":"",
"favorable_policy":"",
"is_favorable_policy":0,
"free_of_tax":0,
"short_code":"",
"tax_measure_price":0,
"tax_rate":0,
"is_tax_logo":0,
"product_verify":{
"id":0,
"created_at":null,
"updated_at":null,
"product_id":0,
"supplier_id":0,
"status":0,
"is_display":0
},
"is_plugin":0,
"is_single_order":0,
"supplier_source_id":0,
"supplier_source_category_id":0
}
}
}