This commit is contained in:
unknown 2020-11-30 13:47:01 +08:00
parent f8c706ecbb
commit 03d4d1ea15

9
dist/js/common.js vendored
View File

@ -163,12 +163,17 @@ 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"),
success(){ success(){
window.parent.location.href="/regime/live"; window.parent.location.href="/regime/livedetail?id=" + window.liveid;
} }
}) })