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.umd.js
CHANGED
|
@@ -31611,7 +31611,19 @@ const dologin = function (username, password, sip) {
|
|
|
31611
31611
|
accPassword: sha256_digest(password)
|
|
31612
31612
|
}, function (ret) {
|
|
31613
31613
|
if (ret.code == 0) {
|
|
31614
|
-
let token = ret.data;
|
|
31614
|
+
let token = ret.data;
|
|
31615
|
+
let connectUrl = '/dispatch-web/api/conn/connectionByToken';
|
|
31616
|
+
loadJson((sip || server) + connectUrl, {
|
|
31617
|
+
token
|
|
31618
|
+
}, function (ret1) {
|
|
31619
|
+
if (ret1.code == 0) {
|
|
31620
|
+
console.log("登录连接完成", ret1.code);
|
|
31621
|
+
resolve(ret1);
|
|
31622
|
+
} else {
|
|
31623
|
+
console.log("登录连接失败", ret1.code);
|
|
31624
|
+
reject(ret1.code);
|
|
31625
|
+
}
|
|
31626
|
+
}, '', 'GET'); //启动心跳保持
|
|
31615
31627
|
// if(heartTime) {
|
|
31616
31628
|
// clearInterval(heartTime);
|
|
31617
31629
|
// }
|
package/dist/ucservice.umd.js.gz
CHANGED
|
Binary file
|