1
This commit is contained in:
parent
bde66631fc
commit
66279db25d
20
dist/js/common.js
vendored
20
dist/js/common.js
vendored
@ -184,22 +184,22 @@ function setBtnClickFuc() {
|
||||
headers: { "Authorization": "Bearer " + localStorage.getItem("token")},
|
||||
method:"PUT",
|
||||
data:{
|
||||
status: 2
|
||||
livestatus: 2
|
||||
},
|
||||
success(){
|
||||
res(1)
|
||||
}
|
||||
})
|
||||
})
|
||||
const jieshuh = new Promise((res)=>{
|
||||
$.ajax({
|
||||
url: window.url + 'StopMCUMixTranscode?roomid=' + window.roomid,
|
||||
headers: { "Authorization": "Bearer " + localStorage.getItem("token")},
|
||||
success(){
|
||||
res(1)
|
||||
}
|
||||
})
|
||||
})
|
||||
// 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;
|
||||
})
|
||||
|
1
dist/js/iminit.js
vendored
1
dist/js/iminit.js
vendored
@ -113,6 +113,7 @@ function formatDateTime (inputTime) {
|
||||
});
|
||||
|
||||
tim.on(TIM.EVENT.KICKED_OUT, function(event) {
|
||||
console.log("用户下线")
|
||||
// 收到被踢下线通知
|
||||
// event.name - TIM.EVENT.KICKED_OUT
|
||||
// event.data.type - 被踢下线的原因,例如:
|
||||
|
@ -184,7 +184,7 @@ function setBtnClickFuc() {
|
||||
headers: { "Authorization": "Bearer " + localStorage.getItem("token")},
|
||||
method:"PUT",
|
||||
data:{
|
||||
status: 2
|
||||
livestatus: 2
|
||||
},
|
||||
success(){
|
||||
res(1)
|
||||
|
@ -113,6 +113,7 @@ function formatDateTime (inputTime) {
|
||||
});
|
||||
|
||||
tim.on(TIM.EVENT.KICKED_OUT, function(event) {
|
||||
console.log("用户下线")
|
||||
// 收到被踢下线通知
|
||||
// event.name - TIM.EVENT.KICKED_OUT
|
||||
// event.data.type - 被踢下线的原因,例如:
|
||||
|
Loading…
Reference in New Issue
Block a user