简要描述:

  • 商品详情

请求域名:

  • http://xx.com

请求URL:

POST/&route=plugin.voice-goods.api.voice-goods.getVoiceGoods

参数:

参数名 是否必须 类型 说明
goods_id int 商城商品ID

返回示例:

有权限时返回:

{
    "result": 1,
    "msg": "",
    "data": {
        "curriculum": {
            "1": {
                "name": "afdass",
                "url": "http://test-1251768088.cosgz.myqcloud.com/audios/3/2019/09/QToiRLto7xfAmlaeWAELwxWFOOf77w.mp3"
            }
        },
        "is_rule": 1,
        "content": "代发发阿发大沙发斯蒂芬",
        "title": "大沙发斯蒂芬",
        "thumb": "http://test-1251768088.cosgz.myqcloud.com/images/3/2019/09/F6aMsSahBcMMJBMwMaooIOMY64jJns.png",
        "goods_video": "http://test-1251768088.cosgz.myqcloud.com/videos/3/2019/09/W0v1vV1gGMwe11p711vq4kT5GE10hE.mp4",
        "video_image": "http://test-1251768088.cosgz.myqcloud.com/images/3/2019/09/F6aMsSahBcMMJBMwMaooIOMY64jJns.png",
        "thumb_url": "",
        "sale_goods": [
            {
                "id": 87,
                "title": "课程2",
                "thumb": "https://dev3.yunzshop.com/attachment/images/3/2018/01/iJlnOhhh3yzNJT3g2GhgYHrgRlYbYh.png",
                "price": "100.00",
                "market_price": "0.00",
                "status_name": null
            },
            {
                "id": 140,
                "title": "T802k 舒适内裤",
                "thumb": "http://127.0.0.3/addons/yun_shop/static/yunshop/goods/images/Qseoqt2sf2TQZ0TwF4Z4wju03fUnJ4.jpg",
                "price": "68.00",
                "market_price": "68.00",
                "status_name": null
            }
        ],
        "goods_content": "<p>大法师的代发</p>"
    }
}

无权限时返回:

{
    "result": 1,
    "msg": "",
    "data": {
        "is_rule": 0,
        "content": "代发发阿发大沙发斯蒂芬",
        "title": "大沙发斯蒂芬",
        "thumb": "http://test-1251768088.cosgz.myqcloud.com/images/3/2019/09/F6aMsSahBcMMJBMwMaooIOMY64jJns.png",
        "goods_video": "http://test-1251768088.cosgz.myqcloud.com/videos/3/2019/09/W0v1vV1gGMwe11p711vq4kT5GE10hE.mp4",
        "video_image": "http://test-1251768088.cosgz.myqcloud.com/images/3/2019/09/F6aMsSahBcMMJBMwMaooIOMY64jJns.png",
        "thumb_url": "",
        "sale_goods": [
            {
                "id": 87,
                "title": "课程2",
                "thumb": "https://dev3.yunzshop.com/attachment/images/3/2018/01/iJlnOhhh3yzNJT3g2GhgYHrgRlYbYh.png",
                "price": "100.00",
                "market_price": "0.00",
                "status_name": null
            },
            {
                "id": 140,
                "title": "T802k 舒适内裤",
                "thumb": "http://127.0.0.3/addons/yun_shop/static/yunshop/goods/images/Qseoqt2sf2TQZ0TwF4Z4wju03fUnJ4.jpg",
                "price": "68.00",
                "market_price": "68.00",
                "status_name": null
            }
        ],
        "goods_content": "<p>大法师的代发</p>"
    }
}

返回参数说明:

参数名 类型 说明
content string 语音商品简介
title string 语音商品名称
thumb_url array 商品其他图片
curriculum array 语音商品信息
one_name string 语音名称
one_url string 语音链接
tow_name string 语音名称
goods_content string 商城商品描述
two_url string 语音链接
sale_goods array 猜你喜欢
title string 关联商品名称
thumb string 关联商品图片
is_rule tinyint 1-有权限 0-无权限
goods_video tinyint 视频
video_image tinyint 视频图片