瀏覽代碼

hub优化

master
liangkun 3 年之前
父節點
當前提交
708c64c81d
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/pushmessage.js

+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/LR_Content/script/pushmessage.js 查看文件

@@ -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 () {


Loading…
取消
儲存