获取直播间列表

简要描述
  • 获取直播间列表
请求URL
  • http://localhost:32223/api/WxLive/LiveInfo?start=0&limit=2
请求方式
  • POST
参数
参数名 必选 类型 说明
start int 起始拉取房间,start = 0 表示从第 1 个房间开始拉取
limit int 每次拉取的个数上限,不要设置过大,建议 100 以内
返回示例
{
    "live_replay": [],
    "errmsg": "ok",
    "total": 9,
    "room_info": [
        {
            "name": "123456789",
            "cover_img": "http://mmbiz.qpic.cn/mmbiz_png/rrAtNice7XAKX4qzCRlDutCOxRX2lQuPUItxOicSACqv9l5LKxRhFdSRolIcfI7B863vC9P4VL2ibV9QmicjVia9Uag/0",
            "start_time": 1635827514,
            "end_time": 1635868800,
            "anchor_name": "测试直播间",
            "roomid": 26,
            "goods": [
                {
                    "name": "蟹中王 套餐奖品卡",
                    "cover_img": "http://mmbiz.qpic.cn/mmbiz_jpg/rrAtNice7XAJ99xWNGRibWwqJEAiaOaAbnO5F6pr7YW5t4XU9dAtuVdyH05KKn4q13wxu0U2ZibTroVaoXwy6UjVHg/0",
                    "url": "pages/productdetail/productdetail?id=1026809",
                    "price": 211200,
                    "price2": 0,
                    "price_type": 1,
                    "goods_id": 61,
                    "third_party_appid": ""
                },
                {
                    "name": "测试商品",
                    "cover_img": "http://mmbiz.qpic.cn/mmbiz_png/rrAtNice7XAJmy5j3zAOxNtVRSFO3AyCfYXEUxtrQE35utSXecdibBvrAQhpTnZtVUgPic9K4icicuBpA06g671R33w/0",
                    "url": "pages/productdetail/productdetail?id=1026809",
                    "price": 10000,
                    "price2": 0,
                    "price_type": 1,
                    "goods_id": 66,
                    "third_party_appid": ""
                }
            ],
            "live_status": 102,
            "share_img": "http://mmbiz.qpic.cn/mmbiz_jpg/rrAtNice7XAKX4qzCRlDutCOxRX2lQuPUicucxoRCibqoaPhYUwaPc6GyiaOgxPtiaricvZFx60qaVZerDarRxHPls8A/0",
            "live_type": 0,
            "close_like": 0,
            "close_goods": 0,
            "close_comment": 0,
            "close_kf": 1,
            "close_replay": 1,
            "is_feeds_public": 1,
            "creater_openid": "odezD4pXSjO7cKrEEdP23GTCdKTo",
            "feeds_img": "http://mmbiz.qpic.cn/mmbiz_jpg/rrAtNice7XAKX4qzCRlDutCOxRX2lQuPU6O5M8cGJ5H5WYxdUiaL1bUcYgDX5cGXENCqQCX3PEHBhODG1biaSxHPg/0"
        },
        {
            "name": "1111111",
            "cover_img": "http://mmbiz.qpic.cn/mmbiz_jpg/rrAtNice7XAJ99xWNGRibWwqJEAiaOaAbnOLbuVKs9aSYlPrH1K8tAYcycVLIWlvaFCIS4A3sOVuibdoB1MIpQjs0w/0",
            "start_time": 1635234531,
            "end_time": 1635264000,
            "anchor_name": "测试直播间",
            "roomid": 25,
            "goods": [],
            "live_status": 107,
            "share_img": "http://mmbiz.qpic.cn/mmbiz_jpg/rrAtNice7XAJ99xWNGRibWwqJEAiaOaAbnOLbuVKs9aSYlPrH1K8tAYcycVLIWlvaFCIS4A3sOVuibdoB1MIpQjs0w/0",
            "live_type": 0,
            "close_like": 0,
            "close_goods": 0,
            "close_comment": 0,
            "close_kf": 1,
            "close_replay": 1,
            "is_feeds_public": 1,
            "creater_openid": "odezD4oHH74RZf0p_Tu0q4nugE4E",
            "feeds_img": "http://mmbiz.qpic.cn/mmbiz_jpg/rrAtNice7XAJ99xWNGRibWwqJEAiaOaAbnOLbuVKs9aSYlPrH1K8tAYcycVLIWlvaFCIS4A3sOVuibdoB1MIpQjs0w/0"
        }
    ],
    "errcode": 0
}
返回参数说明
参数名 类型 说明
groupid int 用户组id,1:超级管理员;2:普通用户
备注
  • 更多返回错误代码请看首页的错误代码描述