ucservice 2.7.1 → 2.7.3

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.
@@ -14994,8 +14994,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
14994
14994
  _loginSipCall = pluginHandle;
14995
14995
  let register = {
14996
14996
  "request": "register",
14997
- "username": me._opts.conf.user,
14998
- "secret": me._opts.conf.passwd
14997
+ // "username" : me._opts.conf.user,
14998
+ // "secret": me._opts.conf.passwd,
14999
+ token: me._opts.conf.token || getToken()
14999
15000
  };
15000
15001
 
15001
15002
  _loginSipCall.send({
@@ -31681,7 +31682,17 @@ const loadJson = function (url, param, backSuccfn, async, method, headers, conte
31681
31682
  'timeout': 20000,
31682
31683
  'async': async
31683
31684
  };
31684
- if (headers) Object.assign(ajaxContent, headers);
31685
+ if (!headers) headers = {
31686
+ headers: {}
31687
+ };
31688
+
31689
+ if (headers) {
31690
+ if (param.token) Object.assign(headers.headers, {
31691
+ 'Sc-Token': param.token
31692
+ });
31693
+ Object.assign(ajaxContent, headers);
31694
+ }
31695
+
31685
31696
  if (contentType) Object.assign(ajaxContent, {
31686
31697
  contentType
31687
31698
  });
@@ -32882,7 +32893,8 @@ const meetOp = sip => {
32882
32893
  return fetch(server_ + net.url, {
32883
32894
  method: net.method,
32884
32895
  headers: {
32885
- 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
32896
+ 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
32897
+ 'Sc-Token': param.token
32886
32898
  },
32887
32899
  body: new URLSearchParams(param),
32888
32900
  keepalive: true
@@ -32943,7 +32955,8 @@ const meetOp = sip => {
32943
32955
  return fetch(server_ + net.url, {
32944
32956
  method: net.method,
32945
32957
  headers: {
32946
- 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
32958
+ 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
32959
+ 'Sc-Token': param.token
32947
32960
  },
32948
32961
  body: new URLSearchParams(param),
32949
32962
  keepalive: true
Binary file