简要描述:

  • 拼购商品详情

请求域名:

  • http://xx.com

请求URL: 导出为(export)

POST:plugin.together-purchase.api.index.getTogetherData

参数:

参数名 是否必须 类型 说明
art string 值为 index
goods_id string 拼购商品ID

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "",
    "data": {
        "index": {
            "goods": {
                "goods_id": 96,
                "title": "1测试商品--勿拍",
                "price": "1.00",
                "show_sales": 18,
                "stock": 2,
                "market_price": "10.00",
                "thumb": "http://test-1251768088.cosgz.myqcloud.com/images/3/2019/09/K7c1US5t7wzWP5uTxcAU7KZaTA5ukK.png",
                "thumb_url": [
                    "http://wq2.com/addons/yun_shop/static/yunshop/goods/images/N0838eMvsM8C8w8S3z86ag0wCcS2Ce.jpg"
                ],
                "content": "",
                "another_goods": [
                    {
                        "id": 25,
                        "title": "订单返现测试",
                        "price": "1000.00",
                        "thumb": "http://wq2.com/attachment/images/3/2017/08/zz6C5o8LZpKlq9K1H906PO1K976nTP.jpg",
                        "status_name": null
                    },
                    {
                        "id": 57,
                        "title": "图片测试",
                        "price": "11.00",
                        "thumb": "https://test-1251768088.cosgz.myqcloud.com/images/3/2017/12/J0CcTIP0Bn17i6t9JI16zj5C50J1s1.jpg",
                        "status_name": null
                    }
                ]
            },
            "custom_service": "http://q.url.cn/s/cy2KHXm",
            "comment": {
                "total": 0,
                "per_page": 5,
                "current_page": 1,
                "last_page": 0,
                "next_page_url": null,
                "prev_page_url": null,
                "from": null,
                "to": null,
                "data": []
            },
            "team": {
                "total": 1,
                "per_page": 10,
                "current_page": 1,
                "last_page": 1,
                "next_page_url": null,
                "prev_page_url": null,
                "from": 1,
                "to": 1,
                "data": [
                    {
                        "activity_id": 1,
                        "nickname": "碳酸果汁",
                        "uid": 24,
                        "avatar": "https://wx.qlogo.cn/mmopen/FibYEcCAgGxYoG8wLnMicZJTbaANwJnuLyVx3iaoRMVspb0qLA7Q9QAYlJ8qsRHZtyRiaNsKxD29hD8WENKhw44eKjc1XHqMBwgs/132",
                        "end_time": "1599873094",
                        "surplus_member": 3,
                        "payed_member": 1,
                        "buy_number": 4,
						"order_id" : 1,
						"is_self" : 1
                    }
                ]
            }
        },
        "polymerization": "",
        "buyList": "",
        "checkActivity": "",
        "purchaseDetail": "",
        "orderDetail": "",
        "refundMoney": "",
        "refundLove": "",
        "getShare": ""
    }
}

错误时返回:


返回参数说明:

参数名 类型 说明
goods array 商品相关信息数组
goods_id int 商品ID
title string 商品名称
thumb int 商品图片
price decimal 商品现价
market_price decimal 商品原价
thumb_url string 商品其他图片
content string 商品描述
another_goods array 活动其他商品信息
custom_service int 客服相关信息
comment int 评论相关信息
team array 团队相关信息
activity_id int 活动ID
end_time int 结束时间
state int 拼购状态 状态 1-拼购中 2-拼购成功 3-拼购失败 4-成团中 5=>'已退款',6=>'已返还爱心值'
surplus_member int 剩余人数
payed_member int 已购人数
buy_number int 团队总人数
is_self int 1-本人开团 0-其他人开团

备注:

  • 更多返回错误代码请看首页的错误代码描述