diff --git a/dist/js/common.js b/dist/js/common.js index adf5d88..8ea80ef 100644 --- a/dist/js/common.js +++ b/dist/js/common.js @@ -163,12 +163,17 @@ function setBtnClickFuc() { leave(); $('#room-root').hide(); $('#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({ url: window.url + 'StopMCUMixTranscode?roomid=' + window.roomid, headers: "Bearer " + localStorage.getItem("token"), success(){ - window.parent.location.href="/regime/live"; + window.parent.location.href="/regime/livedetail?id=" + window.liveid; } }) diff --git a/public/js/common.js b/public/js/common.js index adf5d88..8ea80ef 100644 --- a/public/js/common.js +++ b/public/js/common.js @@ -163,12 +163,17 @@ function setBtnClickFuc() { leave(); $('#room-root').hide(); $('#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({ url: window.url + 'StopMCUMixTranscode?roomid=' + window.roomid, headers: "Bearer " + localStorage.getItem("token"), success(){ - window.parent.location.href="/regime/live"; + window.parent.location.href="/regime/livedetail?id=" + window.liveid; } })