|
@@ -11,7 +11,7 @@ |
|
|
, connect: function () { |
|
|
, connect: function () { |
|
|
var loginInfo = learun.clientdata.get(['userinfo']); |
|
|
var loginInfo = learun.clientdata.get(['userinfo']); |
|
|
if (loginInfo.imOpen != 'true') { |
|
|
if (loginInfo.imOpen != 'true') { |
|
|
setTimeout(learun._im.connect, 10000); |
|
|
|
|
|
|
|
|
setTimeout(learun._im.connect, 60000); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
$.ajax({ |
|
|
$.ajax({ |
|
@@ -49,7 +49,7 @@ |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
if (!learun.imChat) { |
|
|
if (!learun.imChat) { |
|
|
setTimeout(learun._im.connect, 1000); |
|
|
|
|
|
|
|
|
setTimeout(learun._im.connect, 60000); |
|
|
} |
|
|
} |
|
|
// 连接成功后注册服务器方法 |
|
|
// 连接成功后注册服务器方法 |
|
|
$.connection.hub.start().done(function () { |
|
|
$.connection.hub.start().done(function () { |
|
|