Commit 41485046 by libai

测试

parent aaf143bc
Showing with 10 additions and 6 deletions
......@@ -860,6 +860,7 @@ $(function(){
})
}
function newLiveList(e){
$.ajax({
url:$ip+'frontPage/queryLiveUsers/v2',
......@@ -873,16 +874,19 @@ $(function(){
success:function(data){
console.log('直播列表',data)
var html=[];
var obj={
}
var obj=''
obj+=(JSON.stringify(data.normalRoomList))
var j=0
for(var i=0;i<data.normalRoomList.length;i++){
var list=data.normalRoomList[i]
obj.append(list)
obj+=(JSON.stringify(list))
if(i%3==0&&i!=0){
if(data.vipRoomList[j]!=undefined){
list2=data.vipRoomList[j]
obj+=(JSON.stringify(list2))
j++;
html+='<a href="room/liveRoom.html?roomId='+list2.roomId+'&sound=1&v=2022112502&back=1"><li data-type="https://zhibocdn.yabolive.net/comm'+list2.face.split("?")[0]+'?x-oss-process=image/resize,w_180">';
if(list2.liveScope==3)html+='<img class="secret" src="images/Lock-no.png" alt="">';
......@@ -911,7 +915,7 @@ $(function(){
html+='</li></a>';
}
$(".box1 .live-ul").html(html);
console.log(obj)
console.log(JSON.parse(obj))
}
})
......
......@@ -10,7 +10,7 @@
}
else{
$ip='http://cpapitest.yabolive.net:81/'
$ip = "https://cpapi.footseen.xyz/";
// $ip = "https://cpapi.footseen.xyz/";
$ip2="http://ceshi.yabolive.tv/web"
$ws = "ws://47.242.178.187:12308/"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment