From 6750d3358cdca01504fe5650fd4cd9e80c6d62d0 Mon Sep 17 00:00:00 2001 From: unknown <1162963624@qq.com> Date: Mon, 30 Nov 2020 16:21:41 +0800 Subject: [PATCH] luzhi --- dist/js/common.js | 11 ++++++++++- public/js/common.js | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) 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; })