Merge pull request '关闭直播' (#189) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/beelink/pulls/189
This commit is contained in:
commit
13f5407a63
31
dist/js/common.js
vendored
31
dist/js/common.js
vendored
@ -169,14 +169,31 @@ function setBtnClickFuc() {
|
|||||||
}).catch(function(imError) {
|
}).catch(function(imError) {
|
||||||
console.warn('dismissGroup error:', imError); // 解散群组失败的相关信息
|
console.warn('dismissGroup error:', imError); // 解散群组失败的相关信息
|
||||||
});
|
});
|
||||||
$.ajax({
|
const jiekou = new Promise((res)=>{
|
||||||
url: window.url + 'StopMCUMixTranscode?roomid=' + window.roomid,
|
$.ajax({
|
||||||
headers: "Bearer " + localStorage.getItem("token"),
|
url: window.url + 'StopMCUMixTranscode?roomid=' + window.roomid,
|
||||||
success(){
|
headers: "Bearer " + localStorage.getItem("token"),
|
||||||
window.parent.location.href="/regime/livedetail?id=" + window.liveid;
|
success(){
|
||||||
}
|
res(1)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
const jieshu = new Promise((res)=>{
|
||||||
|
$.ajax({
|
||||||
|
url: window.url + 'live?liveid=' + window.liveid,
|
||||||
|
headers: "Bearer " + localStorage.getItem("token"),
|
||||||
|
method:"POST",
|
||||||
|
data:{
|
||||||
|
status: 2
|
||||||
|
},
|
||||||
|
success(){
|
||||||
|
res(1)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
Promise.allSettled([promise,jiekou,jieshu]).then(()=>{
|
||||||
|
window.parent.location.href="/regime/livedetail?id=" + window.liveid;
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
@ -169,14 +169,31 @@ function setBtnClickFuc() {
|
|||||||
}).catch(function(imError) {
|
}).catch(function(imError) {
|
||||||
console.warn('dismissGroup error:', imError); // 解散群组失败的相关信息
|
console.warn('dismissGroup error:', imError); // 解散群组失败的相关信息
|
||||||
});
|
});
|
||||||
$.ajax({
|
const jiekou = new Promise((res)=>{
|
||||||
url: window.url + 'StopMCUMixTranscode?roomid=' + window.roomid,
|
$.ajax({
|
||||||
headers: "Bearer " + localStorage.getItem("token"),
|
url: window.url + 'StopMCUMixTranscode?roomid=' + window.roomid,
|
||||||
success(){
|
headers: "Bearer " + localStorage.getItem("token"),
|
||||||
window.parent.location.href="/regime/livedetail?id=" + window.liveid;
|
success(){
|
||||||
}
|
res(1)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
const jieshu = new Promise((res)=>{
|
||||||
|
$.ajax({
|
||||||
|
url: window.url + 'live?liveid=' + window.liveid,
|
||||||
|
headers: "Bearer " + localStorage.getItem("token"),
|
||||||
|
method:"POST",
|
||||||
|
data:{
|
||||||
|
status: 2
|
||||||
|
},
|
||||||
|
success(){
|
||||||
|
res(1)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
Promise.allSettled([promise,jiekou,jieshu]).then(()=>{
|
||||||
|
window.parent.location.href="/regime/livedetail?id=" + window.liveid;
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
Loading…
Reference in New Issue
Block a user