Commit 5605d31d by 施宇

11

parent 265739a4
Showing with 13 additions and 1 deletions
...@@ -575,6 +575,18 @@ $(function () { ...@@ -575,6 +575,18 @@ $(function () {
onError: function (message) { onError: function (message) {
// console.log('Error', WebIM.utils.stringify(message)); // console.log('Error', WebIM.utils.stringify(message));
console.log('onError: ', message); console.log('onError: ', message);
if (message.type == 206) {
layer.open({
title: '提示',
content: '您的聊天账号被迫下线!'
});
} else {
layer.open({
title: '提示',
content: '聊天系统出现异常!'
});
}
// layer.msg('聊天系统出错'); // layer.msg('聊天系统出错');
}, //失败回调; }, //失败回调;
}); });
...@@ -923,7 +935,7 @@ $(function () { ...@@ -923,7 +935,7 @@ $(function () {
}, },
rendHistoryMessage: function (id, data, isTemplate) { rendHistoryMessage: function (id, data, isTemplate) {
var position = $(".notice_classify[userid=" + id + "]").attr('position'); var position = $(".notice_classify[userid=" + id + "]").attr('position');
if(position){ if (position) {
$(".notice_classify[userid=" + id + "]").removeAttr('position') $(".notice_classify[userid=" + id + "]").removeAttr('position')
} }
var chatCon = ""; var chatCon = "";
......
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