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.
- package/dist/ucservice.common.js +18 -5
- package/dist/ucservice.common.js.gz +0 -0
- package/dist/ucservice.common.js.map +1 -1
- package/dist/ucservice.umd.js +18 -5
- 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
|
@@ -14985,8 +14985,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
14985
14985
|
_loginSipCall = pluginHandle;
|
|
14986
14986
|
let register = {
|
|
14987
14987
|
"request": "register",
|
|
14988
|
-
"username": me._opts.conf.user,
|
|
14989
|
-
"secret": me._opts.conf.passwd
|
|
14988
|
+
// "username" : me._opts.conf.user,
|
|
14989
|
+
// "secret": me._opts.conf.passwd,
|
|
14990
|
+
token: me._opts.conf.token || getToken()
|
|
14990
14991
|
};
|
|
14991
14992
|
|
|
14992
14993
|
_loginSipCall.send({
|
|
@@ -31672,7 +31673,17 @@ const loadJson = function (url, param, backSuccfn, async, method, headers, conte
|
|
|
31672
31673
|
'timeout': 20000,
|
|
31673
31674
|
'async': async
|
|
31674
31675
|
};
|
|
31675
|
-
if (headers)
|
|
31676
|
+
if (!headers) headers = {
|
|
31677
|
+
headers: {}
|
|
31678
|
+
};
|
|
31679
|
+
|
|
31680
|
+
if (headers) {
|
|
31681
|
+
if (param.token) Object.assign(headers.headers, {
|
|
31682
|
+
'Sc-Token': param.token
|
|
31683
|
+
});
|
|
31684
|
+
Object.assign(ajaxContent, headers);
|
|
31685
|
+
}
|
|
31686
|
+
|
|
31676
31687
|
if (contentType) Object.assign(ajaxContent, {
|
|
31677
31688
|
contentType
|
|
31678
31689
|
});
|
|
@@ -32873,7 +32884,8 @@ const meetOp = sip => {
|
|
|
32873
32884
|
return fetch(server_ + net.url, {
|
|
32874
32885
|
method: net.method,
|
|
32875
32886
|
headers: {
|
|
32876
|
-
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
|
|
32887
|
+
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
|
|
32888
|
+
'Sc-Token': param.token
|
|
32877
32889
|
},
|
|
32878
32890
|
body: new URLSearchParams(param),
|
|
32879
32891
|
keepalive: true
|
|
@@ -32934,7 +32946,8 @@ const meetOp = sip => {
|
|
|
32934
32946
|
return fetch(server_ + net.url, {
|
|
32935
32947
|
method: net.method,
|
|
32936
32948
|
headers: {
|
|
32937
|
-
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
|
|
32949
|
+
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
|
|
32950
|
+
'Sc-Token': param.token
|
|
32938
32951
|
},
|
|
32939
32952
|
body: new URLSearchParams(param),
|
|
32940
32953
|
keepalive: true
|
|
Binary file
|