Commit d782dc3e by libai

测试

parent f1984a5e
Showing with 13 additions and 12 deletions
......@@ -3293,17 +3293,7 @@ $(function () {
ws.onmessage = function (evt) {
var obj = JSON.parse(evt.data);
//系統消息
if(JSON.parse(obj.content).content.roomid!=sessionStorage.roomId){
return;
}
if(obj.cid == 10000){
var list=JSON.parse(obj.content)
//console.log('系統消息',list);
var html=[];
html+='<li class="live-msg-li">'+list.content.msg+'</li>';
$(".live-msg-ul").append(html);
}
//充值完成通知
if (obj.cid == 8000){
if(newGiftOk==false)return;
......@@ -3323,7 +3313,6 @@ $(function () {
}
})
}, 500);
$(".layer-gift-btn1").unbind("click").on("click",function(){
layer.closeAll()
})
......@@ -3331,6 +3320,18 @@ $(function () {
newGiftSend()
})
}
//系統消息
if(JSON.parse(obj.content).content.roomid!=sessionStorage.roomId){
return;
}
if(obj.cid == 10000){
var list=JSON.parse(obj.content)
//console.log('系統消息',list);
var html=[];
html+='<li class="live-msg-li">'+list.content.msg+'</li>';
$(".live-msg-ul").append(html);
}
//刷獎送禮
if(obj.cid == 5300){
Reconnection=0;
......
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