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.
@@ -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
  // }
Binary file