Merge pull request '直播结束' (#190) from xbx into master

Reviewed-on: http://git.luyuan.tk/luyuan/beelink/pulls/190
This commit is contained in:
luyuan 2020-11-30 15:49:55 +08:00
commit 25f7a99ed7
4 changed files with 6 additions and 6 deletions

4
dist/js/common.js vendored
View File

@ -172,7 +172,7 @@ function setBtnClickFuc() {
const jiekou = new Promise((res)=>{ const jiekou = new Promise((res)=>{
$.ajax({ $.ajax({
url: window.url + 'StopMCUMixTranscode?roomid=' + window.roomid, url: window.url + 'StopMCUMixTranscode?roomid=' + window.roomid,
headers: "Bearer " + localStorage.getItem("token"), headers: { "Authorization": "Bearer " + localStorage.getItem("token")},
success(){ success(){
res(1) res(1)
} }
@ -181,7 +181,7 @@ function setBtnClickFuc() {
const jieshu = new Promise((res)=>{ const jieshu = new Promise((res)=>{
$.ajax({ $.ajax({
url: window.url + 'live?liveid=' + window.liveid, url: window.url + 'live?liveid=' + window.liveid,
headers: "Bearer " + localStorage.getItem("token"), headers: { "Authorization": "Bearer " + localStorage.getItem("token")},
method:"POST", method:"POST",
data:{ data:{
status: 2 status: 2

View File

@ -63,7 +63,7 @@ function genTestUserSig(userID) {
return new Promise((res)=>{ return new Promise((res)=>{
$.ajax({ $.ajax({
url: window.url + 'userSig?userid=' + userID, url: window.url + 'userSig?userid=' + userID,
headers: "Bearer " + localStorage.getItem("token"), headers: { "Authorization": "Bearer " + localStorage.getItem("token")},
success(data){ success(data){
res({data: data.data, id: 1400435767}) res({data: data.data, id: 1400435767})
} }

View File

@ -172,7 +172,7 @@ function setBtnClickFuc() {
const jiekou = new Promise((res)=>{ const jiekou = new Promise((res)=>{
$.ajax({ $.ajax({
url: window.url + 'StopMCUMixTranscode?roomid=' + window.roomid, url: window.url + 'StopMCUMixTranscode?roomid=' + window.roomid,
headers: "Bearer " + localStorage.getItem("token"), headers: { "Authorization": "Bearer " + localStorage.getItem("token")},
success(){ success(){
res(1) res(1)
} }
@ -181,7 +181,7 @@ function setBtnClickFuc() {
const jieshu = new Promise((res)=>{ const jieshu = new Promise((res)=>{
$.ajax({ $.ajax({
url: window.url + 'live?liveid=' + window.liveid, url: window.url + 'live?liveid=' + window.liveid,
headers: "Bearer " + localStorage.getItem("token"), headers: { "Authorization": "Bearer " + localStorage.getItem("token")},
method:"POST", method:"POST",
data:{ data:{
status: 2 status: 2

View File

@ -63,7 +63,7 @@ function genTestUserSig(userID) {
return new Promise((res)=>{ return new Promise((res)=>{
$.ajax({ $.ajax({
url: window.url + 'userSig?userid=' + userID, url: window.url + 'userSig?userid=' + userID,
headers: "Bearer " + localStorage.getItem("token"), headers: { "Authorization": "Bearer " + localStorage.getItem("token")},
success(data){ success(data){
res({data: data.data, id: 1400435767}) res({data: data.data, id: 1400435767})
} }