|
@@ -1824,7 +1824,9 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
|
1824
|
1824
|
}
|
1825
|
1825
|
$rootScope.jry_state = "weiqianru";
|
1826
|
1826
|
window.addEventListener('load', function () {
|
1827
|
|
- $rootScope.getExtnDirect();//seiminHj----1
|
|
1827
|
+ if($rootScope.isFuwutai){
|
|
1828
|
+ $rootScope.getExtnDirect();//seiminHj----1
|
|
1829
|
+ }
|
1828
|
1830
|
})
|
1829
|
1831
|
//话机呼叫中心--结束
|
1830
|
1832
|
|
|
@@ -2414,12 +2416,14 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
|
2414
|
2416
|
// $auth.deleteData('auth_headers')
|
2415
|
2417
|
sessionStorage.clear();
|
2416
|
2418
|
localStorage.clear();
|
2417
|
|
- tlwsa.tlaClose();
|
2418
|
|
- $.toaster({
|
2419
|
|
- priority: 'info',
|
2420
|
|
- title: '操作',
|
2421
|
|
- message: '呼叫中心断开连接'
|
2422
|
|
- });
|
|
2419
|
+ if($rootScope.isFuwutai){
|
|
2420
|
+ tlwsa.tlaClose();
|
|
2421
|
+ $.toaster({
|
|
2422
|
+ priority: 'info',
|
|
2423
|
+ title: '操作',
|
|
2424
|
+ message: '呼叫中心断开连接'
|
|
2425
|
+ });
|
|
2426
|
+ }
|
2423
|
2427
|
$state.go("login.signin");
|
2424
|
2428
|
})
|
2425
|
2429
|
.catch(function (resp) { });
|
|
@@ -2675,7 +2679,7 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
|
2675
|
2679
|
trackMessageLength: true, //校验数据完整性
|
2676
|
2680
|
transport: 'websocket'
|
2677
|
2681
|
};
|
2678
|
|
- subSocket = socket.subscribe(request);
|
|
2682
|
+ // subSocket = socket.subscribe(request);暂时注释,不知道干啥的
|
2679
|
2683
|
|
2680
|
2684
|
request.onOpen = function (response) {
|
2681
|
2685
|
console.log(response)
|