API接口文档

直播首页

创建于 2021-10-18 / 134

简要描述

直播首页

接口版本

版本号 制定人 制定日期 修订日期
1.0.0 Devil 2020-09-29

请求URL

plugins/index&pluginsname=weixinliveplayer&pluginscontrol=index&pluginsaction=index

请求方式

POST

公共参数

参数名 是否必须 类型 默认值 描述
application string web 请求应用、参考公共中详解
application_client_type string pc 请求客户端、参考公共中详解
token string token

请求参数

返回示例

正确时返回

{
    "msg": "success",
    "code": 0,
    "data": {
        "data": [
            {
                "id": "1",
                "name": "ShopXO直播",
                "roomid": "1",
                "cover_img_old": "http://mmbiz.qpic.cn/mmbiz_jpg/Fykyib5sicUx4cic2MR3O72C8OOia460kh0bAKazG1Bk5bVkKN9fLADz8TT6jvQoib16SN4q94cE7UjVVuvfCQum8mg/0",
                "cover_img": "https://d1.shopxo.vip/static/upload/images/plugins_weixinliveplayer/liveplayer/2021/08/02/202108021546599244019882.jpg",
                "share_img_old": "http://mmbiz.qpic.cn/mmbiz_jpg/Fykyib5sicUx4cic2MR3O72C8OOia460kh0bOcujlpae7m9q5mTWtwjm9VEWxY2B5zazIknoGfQc8ANpYpNYRVfVKA/0",
                "share_img": "https://d1.shopxo.vip/static/upload/images/plugins_weixinliveplayer/liveplayer/2021/08/02/20210802154659578516714.jpg",
                "start_time": "2020-08-17 18:51:50",
                "end_time": "2020-08-17 18:54:37",
                "anchor_img_old": "",
                "anchor_img": "",
                "anchor_name": "Devil",
                "live_status": "103",
                "status": "3",
                "qrcode_images": "https://d1.shopxo.vip/static/upload/images/plugins_weixinliveplayer/poster_qrcode/2021/08/02/2021080215470010.jpg",
                "is_enable": "1",
                "add_time": "2021-08-02 15:47:00",
                "upd_time": "2021-10-18 13:04:29",
                "status_name": "已结束"
            }
        ],
        "base": [
            {
                "id": "1",
                "name": "ShopXO直播",
                "roomid": "1",
                "cover_img_old": "http://mmbiz.qpic.cn/mmbiz_jpg/Fykyib5sicUx4cic2MR3O72C8OOia460kh0bAKazG1Bk5bVkKN9fLADz8TT6jvQoib16SN4q94cE7UjVVuvfCQum8mg/0",
                "cover_img": "https://d1.shopxo.vip/static/upload/images/plugins_weixinliveplayer/liveplayer/2021/08/02/202108021546599244019882.jpg",
                "share_img_old": "http://mmbiz.qpic.cn/mmbiz_jpg/Fykyib5sicUx4cic2MR3O72C8OOia460kh0bOcujlpae7m9q5mTWtwjm9VEWxY2B5zazIknoGfQc8ANpYpNYRVfVKA/0",
                "share_img": "https://d1.shopxo.vip/static/upload/images/plugins_weixinliveplayer/liveplayer/2021/08/02/20210802154659578516714.jpg",
                "start_time": "2020-08-17 18:51:50",
                "end_time": "2020-08-17 18:54:37",
                "anchor_img_old": "",
                "anchor_img": "",
                "anchor_name": "Devil",
                "live_status": "103",
                "status": "3",
                "qrcode_images": "https://d1.shopxo.vip/static/upload/images/plugins_weixinliveplayer/poster_qrcode/2021/08/02/2021080215470010.jpg",
                "is_enable": "1",
                "add_time": "2021-08-02 15:47:00",
                "upd_time": "2021-10-18 13:04:29",
                "status_name": "已结束"
            }
        ],
        "banner_list": [
            {
                "name": "直播",
                "images_url": "https://d1.shopxo.vip/static/upload/images/plugins_weixinliveplayer/2020/04/17/1587131065524716.jpg",
                "event_value": "/pages/goods-search/goods-search",
                "event_type": "1",
                "bg_color": "",
                "images_url_old": "/static/upload/images/plugins_weixinliveplayer/2020/04/17/1587131065524716.jpg"
            }
        ]
    }
}

错误时返回

{
    "msg": "error",
    "code": -1,
    "data": []
}

返回参数说明 -> data

参数名 是否必须 类型 描述
base array 插件基础配置
data array 直播数据
banner_list array 轮播

备注

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

0 人点赞过