diff --git a/public/js/common.js b/public/js/common.js
index f2c5cd0..fef8525 100644
--- a/public/js/common.js
+++ b/public/js/common.js
@@ -164,12 +164,26 @@ function setBtnClickFuc() {
$('#room-root').hide();
$('#login-root').show();
$.ajax({
- url: window.url + 'StopMCUMixTranscode?roomid=' + window.roomid,
+ url: window.url + 'onExitRoom?roomid=' + window.roomid,
headers: "Bearer " + localStorage.getItem("token"),
+ method:"POST",
+ data:{
+ type:1,
+ memberid:window.mid,
+ liveid:wiondow.liveid,
+ length:window.mytime
+ },
success(){
- window.parent.location.href="/regime/live";
+ $.ajax({
+ url: window.url + 'StopMCUMixTranscode?roomid=' + window.roomid,
+ headers: "Bearer " + localStorage.getItem("token"),
+ success(){
+ window.parent.location.href="/regime/live";
+ }
+ })
}
})
+
}
else{
diff --git a/public/zhibo.html b/public/zhibo.html
index 629cd57..ad3fca8 100644
--- a/public/zhibo.html
+++ b/public/zhibo.html
@@ -411,6 +411,7 @@
const urldata = GetRequest('roomid')
window.roomid = urldata.roomid
window.mid = urldata.memberid
+ window.lvieid = urldata.liveid
window.uname = urldata.name
@@ -436,6 +437,12 @@
+