解散群组

This commit is contained in:
unknown 2020-11-30 13:45:25 +08:00
parent 380eef939b
commit 06f86fb780

View File

@ -163,7 +163,12 @@ function setBtnClickFuc() {
leave(); leave();
$('#room-root').hide(); $('#room-root').hide();
$('#login-root').show(); $('#login-root').show();
let promise = tim.dismissGroup(window.roomid);
promise.then(function(imResponse) { // 解散成功
console.log(imResponse.data.groupID); // 被解散的群组 ID
}).catch(function(imError) {
console.warn('dismissGroup error:', imError); // 解散群组失败的相关信息
});
$.ajax({ $.ajax({
url: window.url + 'StopMCUMixTranscode?roomid=' + window.roomid, url: window.url + 'StopMCUMixTranscode?roomid=' + window.roomid,
headers: "Bearer " + localStorage.getItem("token"), headers: "Bearer " + localStorage.getItem("token"),