3 Star 0 Fork 0

商城项目 / doc.weecot.com

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
suppliers-cart.md 6.56 KB
一键复制 编辑 原始数据 按行查看 历史
Jade 提交于 2021-03-01 10:25 . first commit

购物车商品列表

接口描述:

  • 购物车商品列表(suppliers/cart)

接口版本:

版本号 制定人 制定日期 修订日期
1.4.1 wanganlin 2017-03-20 2019-11-12

请求URL:

请求方式:

  • POST

请求头:

参数名 是否必须 类型 说明
Content-Type String 请求类型: application/json
token String 请求内容签名

请求参数:

参数名 是否必须 默认值 类型 说明

返回示例:

正确时返回:

{
    "status": "success",
    "data": [
        {
            "suppliers_id": 6,
            "ru_id": 1,
            "shop_name": "万卓ecmoban",
            "is_IM": 1,
            "is_dsc": false,
            "kf_type": 0,
            "kf_ww": "",
            "kf_qq": "349488953",
            "goods_list": [
                {
                    "goods_id": 138,
                    "suppliers_id": 6,
                    "cat_id": 13,
                    "goods_name": "30粒蒲江特产奇异果中小果应季猕猴桃礼盒装 新鲜水果",
                    "rank_ids": "",
                    "goods_price": "200.00",
                    "enabled": 1,
                    "review_status": 3,
                    "review_content": "",
                    "price_model": 0,
                    "goods_type": 39,
                    "goods_number": 1000,
                    "moq": 1,
                    "is_recommend": 0,
                    "is_promote": 0,
                    "start_time": 0,
                    "end_time": 0,
                    "shipping_fee": "0.00",
                    "freight": 0,
                    "tid": 0,
                    "standard_goods": 0,
                    "goods_sn": "dscx000138",
                    "brand_id": 0,
                    "promote_price": "0.00",
                    "goods_weight": "1.00",
                    "retail_price": "100.00",
                    "warn_number": 1,
                    "goods_brief": "",
                    "goods_desc": "",
                    "goods_thumb": "http://www.hbf.dscmall.zhuo/storage/data/gallery_album/100/thumb_img/100_thumb_G_1554157672088.jpg",
                    "goods_img": "data/gallery_album/100/images/100_P_1554157672681.jpg",
                    "export_type": 0,
                    "export_type_ext": "",
                    "original_img": "data/gallery_album/100/original_img/100_P_1554157672104.jpg",
                    "add_time": 1554931895,
                    "sort_order": 100,
                    "is_delete": 0,
                    "is_best": 0,
                    "is_new": 0,
                    "is_hot": 0,
                    "last_update": 1556239433,
                    "is_xiangou": 0,
                    "xiangou_start_date": 0,
                    "xiangou_end_date": 0,
                    "xiangou_num": 0,
                    "sales_volume": 2,
                    "goods_product_tag": "",
                    "goods_unit": "个",
                    "goods_cause": "0,1,2,3",
                    "bar_code": "",
                    "goods_service": "",
                    "is_shipping": 0,
                    "keywords": "",
                    "pinyin_keyword": "lipujiangtechanqiyiguozhongxiaoguoyingjihoutaolihezhuang xinxianshuiguo",
                    "desc_mobile": "",
                    "total_number": 3,
                    "total_price": 600,
                    "goods_attr_text": "颜色:红色 \n尺寸:M \n",
                    "cart_goods_price": 200,
                    "cart_goods_price_formatted": "¥200.00",
                    "goods_price_formatted": "¥200.00",
                    "total_price_formatted": "¥600.00",
                    "is_reached": 1,
                    "list": [
                        {
                            "rec_id": 72,
                            "user_id": 60,
                            "session_id": "0",
                            "goods_id": 138,
                            "goods_sn": "dscx000138",
                            "product_id": "51",
                            "goods_name": "30粒蒲江特产奇异果中小果应季猕猴桃礼盒装 新鲜水果",
                            "market_price": "0.00",
                            "goods_price": "200.00",
                            "goods_number": 3,
                            "goods_attr": [
                                {
                                    "attr_name": "颜色",
                                    "attr_value": "红色"
                                },
                                {
                                    "attr_name": "尺寸",
                                    "attr_value": "M"
                                }
                            ],
                            "is_real": 0,
                            "extension_code": "",
                            "rec_type": 0,
                            "is_shipping": 0,
                            "goods_attr_id": "62,64",
                            "suppliers_id": 6,
                            "add_time": 1578438872,
                            "freight": 0,
                            "tid": 0,
                            "shipping_fee": "0.00",
                            "is_checked": 1,
                            "goods_price_formatted": "¥200.00",
                            "total_price": 600,
                            "total_price_formatted": "¥600.00"
                        }
                    ],
                    "count": 1,
                    "url": "http://www.hbf.dscmall.zhuo/wholesale_goods.php?id=138"
                }
            ]
        }
    ],
    "time": 1578468855
}

错误时返回:

{
    "status": 'failed',
    "errors": {
        "code": 404,
        "message": "message"
    },
    "time": 1553515084
}

返回参数说明:

参数名 类型 说明
cartlist List[] 购物车列表
├─ suppliers_id Number 供应商id
├─ ru_id Number 店铺id
├─ shop_name String 供应商名称
├─ is_IM Number IM客服
├─ is_dsc Bool 是否开启了IM在线客服
├─ kf_type Number 客服类型

| | ├─ kf_ww | String | 旺旺客服 | | ├─ kf_qq | String | QQ客服 | | ├─ goods_list | List[] | 购物车商品列表 |

备注:

  • 更多返回错误代码请看首页的错误代码描述
其他
1
https://gitee.com/dscmall_test/doc.weecot.com.git
git@gitee.com:dscmall_test/doc.weecot.com.git
dscmall_test
doc.weecot.com
doc.weecot.com
master

搜索帮助