From a0742923b50c6f17b39de5c748c79e4130775697 Mon Sep 17 00:00:00 2001
From: unknown <1162963624@qq.com>
Date: Mon, 30 Nov 2020 11:57:26 +0800
Subject: [PATCH] =?UTF-8?q?=E7=9B=B4=E6=92=AD5=E7=A7=92?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
dist/js/common.js | 2 +-
public/js/common.js | 18 +++---------------
public/zhibo.html | 23 ++++++++++++++++++-----
src/views/login/Login.vue | 2 +-
src/views/regime/Liveing.vue | 2 +-
5 files changed, 24 insertions(+), 23 deletions(-)
diff --git a/dist/js/common.js b/dist/js/common.js
index f2c5cd0..2ae8f5a 100644
--- a/dist/js/common.js
+++ b/dist/js/common.js
@@ -165,7 +165,7 @@ function setBtnClickFuc() {
$('#login-root').show();
$.ajax({
url: window.url + 'StopMCUMixTranscode?roomid=' + window.roomid,
- headers: "Bearer " + localStorage.getItem("token"),
+ headers: { "Authorization": "Bearer " + localStorage.getItem("token")},
success(){
window.parent.location.href="/regime/live";
}
diff --git a/public/js/common.js b/public/js/common.js
index fef8525..adf5d88 100644
--- a/public/js/common.js
+++ b/public/js/common.js
@@ -163,24 +163,12 @@ function setBtnClickFuc() {
leave();
$('#room-root').hide();
$('#login-root').show();
+
$.ajax({
- url: window.url + 'onExitRoom?roomid=' + window.roomid,
+ url: window.url + 'StopMCUMixTranscode?roomid=' + window.roomid,
headers: "Bearer " + localStorage.getItem("token"),
- method:"POST",
- data:{
- type:1,
- memberid:window.mid,
- liveid:wiondow.liveid,
- length:window.mytime
- },
success(){
- $.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/live";
}
})
diff --git a/public/zhibo.html b/public/zhibo.html
index ad3fca8..d623df0 100644
--- a/public/zhibo.html
+++ b/public/zhibo.html
@@ -411,7 +411,7 @@
const urldata = GetRequest('roomid')
window.roomid = urldata.roomid
window.mid = urldata.memberid
- window.lvieid = urldata.liveid
+ window.liveid = urldata.liveid
window.uname = urldata.name
@@ -438,10 +438,23 @@