简要描述:

  • 蛋糕叔叔-商品详情

请求URL:

商城公用商品详情API

参数:

参数名 类型 说明
goods_id int 商品id
city string 城市名称 否 (全国的时候不要传这个值)

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "customer_service": {
            "cservice": "https://tb.53kf.com/code/wx/2a0c3febab48b2254457e340dd490a7f5/1"
        },
        "plugin": {
            "travel_around": {
                "data": {
                    "travel_around_goods": null,
                    "lately": [],
                    "shop_address": null,
                    "count": 0
                }
            },
            "yz_supply_cake": {
                "data": {
                    "yz_supply_cake_goods": {
                        "goods_id": 5042,
                        "is_yushou": 0,
                        "is_greeting": 0,
                        "can_take": 0,
                        "can_ship": 0,
                        "distrubtion": null,
                        "material": null,
                        "taste": null,
                        "sweetness": null,
                        "middleground_configuration_id": 11,
                        "brand_id": 102420,
                        "yz_goods_id": 822,
                        "has_many_yz_supply_cake_goods_option": [
                            {
                                "goods_id": 5042,
                                "option_id": 6635,
                                "gift": "",
                                "tastes": "",
                                "tastesArr": null,
                                "promotion_start_at": null,
                                "promotion_end_at": null
                            }
                        ]
                    },
                    "rules_distribution": {
                        "code": 209,
                        "msg": "未找到该商品配送范围",
                        "data": {
                            "description": "",
                            "ship_area_type": "",
                            "ship_rule": "",
                            "shop": null
                        }
                    },
                    "brand": {
                        "id": 686,
                        "name": "西檬树(无锡)",
                        "logo": "https://img.dangaoss.com/public/b/66/5/1348248_s.jpg"
                    }
                }
            }
        },
        "goods_type": "goods",
        "get_goods": {
            "id": 5042,
            "uniacid": 5,
            "brand_id": 686,
            "type": 1,
            "status": 1,
            "display_order": 0,
            "title": "粉色之恋L’amour en rose",
            "thumb": "https://img.dangaoss.com/public/p/7/8/1348288_l.jpg",
            "thumb_url": [
                "https://img.dangaoss.com/public/p/7/8/1348288_m.jpg"
            ],
            "sku": "单位",
            "description": "粉色之恋L’amour en rose",
            "content": "",
            "goods_sn": "",
            "product_sn": "",
            "market_price": "43398.00",
            "price": "43398.00",
            "stock": 999999999,
            "show_sales": 0,
            "weight": "0.00",
            "has_option": 1,
            "is_new": 0,
            "is_hot": 0,
            "is_discount": 0,
            "is_recommand": 0,
            "is_comment": 0,
            "comment_num": 0,
            "is_plugin": 0,
            "plugin_id": 157,
            "virtual_sales": 0,
            "no_refund": 0,
            "need_address": 0,
            "type2": 1,
            "old_id": null,
            "volume": null,
            "alias": "",
            "is_hide": 1,
            "min_price": "398.00",
            "max_price": "398.00",
            "vip_price_show": "43398.00",
            "is_added": "2",
            "show_push": [],
            "get_comment": [],
            "favorable_rate": "100%",
            "goods_video": "",
            "video_image": "",
            "show_stock": 99999,
            "is_member_enter": 1,
            "detail_show": 0,
            "is_month_sales": 0,
            "is_price_desc": 0,
            "price_desc_title": "价格说明",
            "explain": "",
            "is_order_detail_comment_show": null,
            "coupon": null,
            "spec_info": [],
            "status_name": "上架",
            "has_many_params": [],
            "has_many_specs": [
                {
                    "id": 6979,
                    "goods_id": 5042,
                    "title": "规格",
                    "description": null,
                    "specitem": [
                        {
                            "id": 9809,
                            "title": "7寸",
                            "specid": 6979,
                            "thumb": ""
                        }
                    ]
                }
            ],
            "has_many_options": [
                {
                    "id": 6635,
                    "goods_id": 5042,
                    "title": "7寸",
                    "thumb": "",
                    "product_price": "398.00",
                    "cost_price": "398.00",
                    "market_price": "398.00",
                    "stock": 99999,
                    "specs": "9809",
                    "weight": "0.00",
                    "points": "",
                    "goods": {
                        "id": 5042,
                        "uniacid": 5,
                        "brand_id": 686,
                        "type": 1,
                        "status": 1,
                        "display_order": 0,
                        "title": "粉色之恋L’amour en rose",
                        "thumb": "https://img.dangaoss.com/public/p/7/8/1348288_l.jpg",
                        "thumb_url": "a:1:{i:0;s:51:\"https://img.dangaoss.com/public/p/7/8/1348288_m.jpg\";}",
                        "sku": "单位",
                        "goods_sn": "",
                        "product_sn": "",
                        "market_price": "43398.00",
                        "price": "43398.00",
                        "cost_price": "43398.00",
                        "stock": 999999999,
                        "reduce_stock_method": 0,
                        "show_sales": 0,
                        "real_sales": 0,
                        "weight": "0.00",
                        "has_option": 1,
                        "is_new": 0,
                        "is_hot": 0,
                        "is_discount": 0,
                        "is_recommand": 0,
                        "is_comment": 0,
                        "is_deleted": 0,
                        "created_at": "2022-11-11 15:47:38",
                        "deleted_at": null,
                        "updated_at": "2022-11-11 15:47:38",
                        "comment_num": 0,
                        "is_plugin": 0,
                        "plugin_id": 157,
                        "virtual_sales": 0,
                        "no_refund": 0,
                        "need_address": 0,
                        "type2": 1,
                        "old_id": null,
                        "volume": null,
                        "alias": "",
                        "is_hide": 1,
                        "min_price": "398.00",
                        "max_price": "398.00",
                        "vip_price": "43398.00",
                        "next_level_price": "43398.00",
                        "has_many_goods_discount": [],
                        "has_many_options": [
                            {
                                "id": 6635,
                                "uniacid": 5,
                                "goods_id": 5042,
                                "title": "7寸",
                                "thumb": null,
                                "product_price": "398.00",
                                "market_price": "398.00",
                                "cost_price": "398.00",
                                "stock": 99999,
                                "weight": "0.00",
                                "display_order": 0,
                                "specs": "9809",
                                "skuId": "",
                                "goods_sn": "",
                                "product_sn": "",
                                "virtual": 0,
                                "red_price": "",
                                "volume": null
                            }
                        ]
                    }
                }
            ],
            "has_one_brand": {
                "id": 686,
                "logo": "https://img.dangaoss.com/public/b/66/5/1348248_s.jpg",
                "name": "西檬树(无锡)",
                "desc": ""
            },
            "has_one_share": {
                "need_follow": 1,
                "share_title": "",
                "share_thumb": "",
                "share_desc": ""
            },
            "has_one_goods_dispatch": {
                "id": 4997,
                "goods_id": 5042,
                "dispatch_type": 1,
                "dispatch_price": "0.00",
                "dispatch_id": 0,
                "is_cod": 1,
                "created_at": "2022-11-11 15:47:38",
                "updated_at": "2022-11-11 15:47:38",
                "deleted_at": null,
                "dispatch_type_ids": "1"
            },
            "has_one_privilege": null,
            "has_one_sale": {
                "id": 5035,
                "goods_id": 5042,
                "max_balance_deduct": "",
                "is_sendfree": 0,
                "ed_num": "",
                "ed_money": "",
                "ed_areas": "",
                "ed_areaids": null,
                "bonus": 0,
                "max_point_deduct": "",
                "point": "",
                "ed_full": "0.00",
                "ed_reduction": "0.00",
                "is_push": 0,
                "push_goods_ids": "",
                "award_balance": "0",
                "min_point_deduct": "",
                "point_type": 0,
                "max_once_point": "0",
                "created_at": null,
                "updated_at": null,
                "all_point_deduct": "0.00",
                "has_all_point_deduct": 0,
                "balance_deduct": 1,
                "pay_reward_balance": "0",
                "min_balance_deduct": "",
                "first_parent_point": null,
                "second_parent_point": null
            },
            "has_one_goods_coupon": null,
            "has_one_invite_page": null,
            "has_one_goods_limit_buy": null,
            "has_one_goods_video": null,
            "has_one_goods_advertising": null,
            "has_many_discount": [],
            "has_many_search_filter": [],
            "has_many_goods_discount": [],
            "member_discount": {
                "level_name": "普通会员",
                "discount_value": "398.00",
                "discount": "2",
                "next_level_price": "398.00",
                "next_level_name": "VIP",
                "level_type": "0",
                "display_page": "0"
            },
            "goods_sale": {
                "sale_count": 0,
                "first_strip_key": [],
                "sale": []
            },
            "available_coupon": []
        },
        "is_favorite": {
            "status": 0,
            "message": "商品未收藏"
        }
    },
    "validate_page": {
        "is_bind_mobile": 0,
        "invite_page": 0,
        "is_invite": 1,
        "is_login": 1,
        "invite_mobile": 1,
        "bind_mobile_page": []
    }
}

错误时返回:

{
	data: null
	msg: "失败"
	result: 0
}

yz_supply_cake.data返回参数说明:

参数名 类型 说明
yz_supply_cake_goods array 蛋糕叔叔商品数据
rules_distribution array 配送规则数据--第三方返回 (https://www.showdoc.com.cn/dgssapi/7276576394415269)
brand array 品牌

###yz_supply_cake_goods返回参数说明:

参数名 类型 说明
goods_id int 商品id
is_yushou int 是否是预售商品,1代表预售商品,默认0
is_greeting int 是否支持祝福语配置 0支持 1不支持
can_take int 是否可自提:0-否,1-是
can_ship int 是否可配送:0-否,1-是
can_buy int 是否可买
distrubtion string 配规描述
material string 商品材料
taste string 口感
sweetness string 甜度
has_many_yz_supply_cake_goods_option array 规格数据--开始时间与结束时间在这里

###has_many_yz_supply_cake_goods_option返回参数说明:

参数名 类型 说明
goods_id int 商品id
option_id int 规格id
gift string 赠品
tastes string 口味(“,”分割格式)
tastesArr string 口味(数组格式)
promotion_start_at string 活动开始时间
promotion_end_at string 活动结束时间