ucservice 1.9.9 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ucservice.common.js +13 -1
- package/dist/ucservice.common.js.gz +0 -0
- package/dist/ucservice.common.js.map +1 -1
- package/dist/ucservice.umd.js +13 -1
- package/dist/ucservice.umd.js.gz +0 -0
- package/dist/ucservice.umd.js.map +1 -1
- package/dist/ucservice.umd.min.js +1 -1
- package/dist/ucservice.umd.min.js.gz +0 -0
- package/dist/ucservice.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/ucservice.common.js
CHANGED
|
@@ -31602,7 +31602,19 @@ const dologin = function (username, password, sip) {
|
|
|
31602
31602
|
accPassword: sha256_digest(password)
|
|
31603
31603
|
}, function (ret) {
|
|
31604
31604
|
if (ret.code == 0) {
|
|
31605
|
-
let token = ret.data;
|
|
31605
|
+
let token = ret.data;
|
|
31606
|
+
let connectUrl = '/dispatch-web/api/conn/connectionByToken';
|
|
31607
|
+
loadJson((sip || server) + connectUrl, {
|
|
31608
|
+
token
|
|
31609
|
+
}, function (ret1) {
|
|
31610
|
+
if (ret1.code == 0) {
|
|
31611
|
+
console.log("登录连接完成", ret1.code);
|
|
31612
|
+
resolve(ret1);
|
|
31613
|
+
} else {
|
|
31614
|
+
console.log("登录连接失败", ret1.code);
|
|
31615
|
+
reject(ret1.code);
|
|
31616
|
+
}
|
|
31617
|
+
}, '', 'GET'); //启动心跳保持
|
|
31606
31618
|
// if(heartTime) {
|
|
31607
31619
|
// clearInterval(heartTime);
|
|
31608
31620
|
// }
|
|
Binary file
|