ucservice 2.4.8 → 2.4.9
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 +48 -10
- package/dist/ucservice.common.js.gz +0 -0
- package/dist/ucservice.common.js.map +1 -1
- package/dist/ucservice.umd.js +48 -10
- 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
|
@@ -32742,17 +32742,36 @@ const meetOp = sip => {
|
|
|
32742
32742
|
},
|
|
32743
32743
|
end: function (param) {
|
|
32744
32744
|
let net = meet_url.endMeetNet;
|
|
32745
|
-
|
|
32745
|
+
let async = true;
|
|
32746
|
+
|
|
32747
|
+
if (Object.keys(param).includes('async')) {
|
|
32748
|
+
async = param.async;
|
|
32749
|
+
}
|
|
32750
|
+
|
|
32751
|
+
if (async) {
|
|
32752
|
+
return new Promise((resolve, reject) => {
|
|
32753
|
+
loadJson(server_ + net.url, { ...param
|
|
32754
|
+
}, function (ret) {
|
|
32755
|
+
if (ret.code == 0) {
|
|
32756
|
+
resolve(ret);
|
|
32757
|
+
} else {
|
|
32758
|
+
console.log("结束会议失败", ret.code);
|
|
32759
|
+
reject(ret.code);
|
|
32760
|
+
}
|
|
32761
|
+
}, '', net.method);
|
|
32762
|
+
});
|
|
32763
|
+
} else {
|
|
32764
|
+
// 同步
|
|
32765
|
+
delete param.async;
|
|
32746
32766
|
loadJson(server_ + net.url, { ...param
|
|
32747
32767
|
}, function (ret) {
|
|
32748
32768
|
if (ret.code == 0) {
|
|
32749
|
-
|
|
32769
|
+
console.log("结束会议成功");
|
|
32750
32770
|
} else {
|
|
32751
32771
|
console.log("结束会议失败", ret.code);
|
|
32752
|
-
reject(ret.code);
|
|
32753
32772
|
}
|
|
32754
|
-
},
|
|
32755
|
-
}
|
|
32773
|
+
}, async, net.method);
|
|
32774
|
+
}
|
|
32756
32775
|
},
|
|
32757
32776
|
joinVideo: function (param) {
|
|
32758
32777
|
let net = meet_url.joinVideoMemberNet;
|
|
@@ -32798,17 +32817,36 @@ const meetOp = sip => {
|
|
|
32798
32817
|
},
|
|
32799
32818
|
destroyRoom: function (param) {
|
|
32800
32819
|
let net = meet_url.destroyMeetNet;
|
|
32801
|
-
|
|
32820
|
+
let async = true;
|
|
32821
|
+
|
|
32822
|
+
if (Object.keys(param).includes('async')) {
|
|
32823
|
+
async = param.async;
|
|
32824
|
+
}
|
|
32825
|
+
|
|
32826
|
+
if (async) {
|
|
32827
|
+
return new Promise((resolve, reject) => {
|
|
32828
|
+
loadJson(server_ + net.url, { ...param
|
|
32829
|
+
}, function (ret) {
|
|
32830
|
+
if (ret.code == 0) {
|
|
32831
|
+
resolve(ret);
|
|
32832
|
+
} else {
|
|
32833
|
+
console.log("销毁会议会场失败", ret.code);
|
|
32834
|
+
reject(ret.code);
|
|
32835
|
+
}
|
|
32836
|
+
}, '', net.method);
|
|
32837
|
+
});
|
|
32838
|
+
} else {
|
|
32839
|
+
// 同步
|
|
32840
|
+
delete param.async;
|
|
32802
32841
|
loadJson(server_ + net.url, { ...param
|
|
32803
32842
|
}, function (ret) {
|
|
32804
32843
|
if (ret.code == 0) {
|
|
32805
|
-
|
|
32844
|
+
console.log("销毁会议会场成功");
|
|
32806
32845
|
} else {
|
|
32807
32846
|
console.log("销毁会议会场失败", ret.code);
|
|
32808
|
-
reject(ret.code);
|
|
32809
32847
|
}
|
|
32810
|
-
},
|
|
32811
|
-
}
|
|
32848
|
+
}, async, net.method);
|
|
32849
|
+
}
|
|
32812
32850
|
},
|
|
32813
32851
|
changeMemberStatus: function (param) {
|
|
32814
32852
|
let net = meet_url.changeMemeberLevelNet;
|
|
Binary file
|