Commit b6cb8674 by libai

测试

parent ca795abe
Showing with 3 additions and 1 deletions
...@@ -2176,7 +2176,9 @@ $(function () { ...@@ -2176,7 +2176,9 @@ $(function () {
ws.onmessage = function (evt) { ws.onmessage = function (evt) {
var obj = JSON.parse(evt.data); var obj = JSON.parse(evt.data);
//系統消息 //系統消息
if(obj.content.roomid!=sessionStorage.roomId){
return;
}
if(obj.cid == 10000){ if(obj.cid == 10000){
var list=JSON.parse(obj.content) var list=JSON.parse(obj.content)
console.log('系統消息',list); console.log('系統消息',list);
......
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