b2c.goods.get_goods_detail 根据货品ID获取单个货品的详细信息

API应用级输入参数

参数 类型 是否必须 说明
product_id int Y 货品ID

API应用级返回结果

成功后,返回结果

Array
(
    [rsp] => succ
    [data] => Array
        (
            [goods_id] => 93
            [product_id] => 545
            [product_bn] => P4CB2BAB2BAEE5
            [unit] => 
            [price] => 398.000
            [mktprice] => 477.6
            [product_marketable] => true
            [goods_marketable] => 
            [title] => CLINIQUE 倩碧 旅行套装
            [brief] => 
            [type_name] => 美容护肤
            [store] => 93
            [cat_name] => 套装
            [brand] => Array
                (
                    [brand_id] => 12
                    [brand_name] => 倩碧
                )

            [spec] => 
            [promotion] => Array
                (
                    [gift] => Array
                        (
                            [0] => Array
                                (
                                    [goods_id] => 86
                                    [product_id] => 538
                                    [name] => AVENE 雅漾 修护洁面乳 200ml
                                    [store] => 99
                                    [freez] => 
                                    [image_default_id] => a4d5fb983e807f3bdeea03d40e7efec9
                                )

                        )

                )

            [props] => Array
                (
                    [p_1] => Array
                        (
                            [props] => Array
                                (
                                    [props_id] => 15
                                    [name] => 适用肤质
                                    [goods_p] => 1
                                )

                            [props_value] => Array
                                (
                                    [props_value_id] => 75
                                    [props_id] => 15
                                    [name] => 油性
                                    [alias] => 
                                )

                        )

                    [p_2] => Array
                        (
                            [props] => Array
                                (
                                    [props_id] => 16
                                    [name] => 类型
                                    [goods_p] => 2
                                )

                            [props_value] => Array
                                (
                                    [props_value_id] => 81
                                    [props_id] => 16
                                    [name] => 爽肤水
                                    [alias] => 化妆水
                                )

                        )

                )

            [image] => Array
                (
                    [cdbaf3402a404e27fb61d278086b83bd] => Array
                        (
                            [image_id] => cdbaf3402a404e27fb61d278086b83bd
                            [s_url] => http://pic.shopex.cn/pictures/eimages/4a47ca168051ce3d20c50f96ccbf61a054353ccfbb.png
                            [m_url] => http://pic.shopex.cn/pictures/eimages/1a2a69af158fc2e6e87e54bf7448e4ff5ee2e26f4a.png
                            [l_url] => http://pic.shopex.cn/pictures/eimages/d2594f5743e21c38d7a4290e43abea2f6a6db68112.png
                        )

                )

        )

    [res] => 
)

失败返回

Array
(
    [rsp] => succ
    [data] => Array
        (
            [status] => 
            [message] => 该货品不存在
        )

    [res] => 24470c9a2141bccb50bc659c1fb64940
)



沪ICP备05002918号

© 2003-2017 ShopEx,Inc.All rights reserved.