客户进入直播间
<p>欢迎使用ShowDoc!欢迎使用ShowDoc!</p>
<p><strong>简要描述:</strong> </p>
<ul>
<li>客户进入直播间()</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://xx.com/api/user_live.php</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST </li>
</ul>
<p><strong>参数:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">action</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>user_enter_room</td>
</tr>
<tr>
<td style="text-align: left;">lang</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>zh_cn:中文;khmer:柬文;en_us:英语</td>
</tr>
<tr>
<td style="text-align: left;">id</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>直播id</td>
</tr>
<tr>
<td style="text-align: left;">user_id</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>主播id</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
"code": 0,
"msg": "操作成功!",
"data": {
"id": "1",
"user_id": "24",
"supplier_id": "7",
"title": "111",//标题
"introdution": "0",//介绍
"location": "123123",//位置
"type": "0",//频道
"like": "14",//点赞数
"status": "1",//直播状态:0:未开始,1;开始,2,暂停
"max_viewers": "192",//观看人数
"goods": "98",
"picture1": "qweqwe",//图片1地址
"picture2": "",//图片1地址
"video": "111",//视频地址
"room_bn": "11",//房间id
"live_time": "1973-07-10 08:11:51",//直播时间
"create_time": "1598602886",
"lastmodify": "2020-08-28 18:01:44",
"headimg": "http://47.112.103.239:8083//mobile/themesmobile/mo_paleng_moban/images/mine/account_default.png",
"mirror":0,//是否镜像:0-不是;1-是
"shop_name":"";//主播名/店铺名
"user_name":"";//用户名(发消息得用户:账号)
"is_guanzhu":"0",//是否关注:0,未关注;1,已关注
"rtmp_push": "rtmp://zipomall.ssvv168.com:19400/zipomall/1611303301172",
"rtmp_pop": "rtmp://zipomall.ssvv168.com:19400/zipomall/1611303301172",
"h5_pop": "http://zipomall.ssvv168.com:18001/zipomall/1611303301172"
"goim_app_url": "192.168.88.250",///弹幕地址
"goim_app_port": "3101", //弹幕地址端口
"share_link": "https://uat.zipomall.com/mobile/live.php?act=live_broadcast&type=live&id=54",//分享链接
"goods_imgs": [
"https://images.zipomall.com/img/Luggage_Bags_Shoes/Women_VulcanizeShoes/ZV00002/CP_KH/main400/ZV00002_15.jpg",
"https://images.zipomall.com/img/Luggage_Bags_Shoes/Women_VulcanizeShoes/ZV00003/CP_KH/main400/ZV00003_21.jpg",
"https://images.zipomall.com/img/Luggage_Bags_Shoes/Women_VulcanizeShoes/ZV00004/CP_KH/main400/ZV00004_13.jpg"
],//商品图片列表-----2021-11-2商品图片轮播
"goods_img": "https://images.zipomall.com/img/Apparel_Accessories/Girls_Accessories/GL00001/CP_KH/main400/GL00001_00.jpg"//商品缩略图
}
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">code</th>
<th style="text-align: left;">说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">1</td>
<td style="text-align: left;">预告不存在</td>
</tr>
<tr>
<td style="text-align: left;">30062</td>
<td style="text-align: left;">参数丢失</td>
</tr>
<tr>
<td style="text-align: left;">5</td>
<td style="text-align: left;">直播未开始</td>
</tr>
<tr>
<td style="text-align: left;">4</td>
<td style="text-align: left;">非法请求</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">code</td>
<td style="text-align: left;">int</td>
<td>0为操作成功,1为操作失败</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!</p>