diff --git a/dist/js/common.js b/dist/js/common.js index b5edbdf..5fb6c17 100644 --- a/dist/js/common.js +++ b/dist/js/common.js @@ -191,7 +191,16 @@ function setBtnClickFuc() { } }) }) - Promise.allSettled([promise,jiekou,jieshu]).then(()=>{ + const jieshuh = new Promise((res)=>{ + $.ajax({ + url: window.url + 'StopMCUMixTranscode?roomid=' + window.roomid, + headers: { "Authorization": "Bearer " + localStorage.getItem("token")}, + success(){ + res(1) + } + }) + }) + Promise.allSettled([promise,jiekou,jieshu,jieshuh]).then(()=>{ window.parent.location.href="/regime/livedetail?id=" + window.liveid; }) diff --git a/public/js/common.js b/public/js/common.js index b5edbdf..5fb6c17 100644 --- a/public/js/common.js +++ b/public/js/common.js @@ -191,7 +191,16 @@ function setBtnClickFuc() { } }) }) - Promise.allSettled([promise,jiekou,jieshu]).then(()=>{ + const jieshuh = new Promise((res)=>{ + $.ajax({ + url: window.url + 'StopMCUMixTranscode?roomid=' + window.roomid, + headers: { "Authorization": "Bearer " + localStorage.getItem("token")}, + success(){ + res(1) + } + }) + }) + Promise.allSettled([promise,jiekou,jieshu,jieshuh]).then(()=>{ window.parent.location.href="/regime/livedetail?id=" + window.liveid; })