This commit is contained in:
unknown 2020-11-30 16:31:05 +08:00
parent bde66631fc
commit 66279db25d
4 changed files with 13 additions and 11 deletions

20
dist/js/common.js vendored
View File

@ -184,22 +184,22 @@ function setBtnClickFuc() {
headers: { "Authorization": "Bearer " + localStorage.getItem("token")}, headers: { "Authorization": "Bearer " + localStorage.getItem("token")},
method:"PUT", method:"PUT",
data:{ data:{
status: 2 livestatus: 2
}, },
success(){ success(){
res(1) res(1)
} }
}) })
}) })
const jieshuh = new Promise((res)=>{ // const jieshuh = new Promise((res)=>{
$.ajax({ // $.ajax({
url: window.url + 'StopMCUMixTranscode?roomid=' + window.roomid, // url: window.url + 'StopMCUMixTranscode?roomid=' + window.roomid,
headers: { "Authorization": "Bearer " + localStorage.getItem("token")}, // headers: { "Authorization": "Bearer " + localStorage.getItem("token")},
success(){ // success(){
res(1) // res(1)
} // }
}) // })
}) // })
Promise.allSettled([promise,jiekou,jieshu,jieshuh]).then(()=>{ Promise.allSettled([promise,jiekou,jieshu,jieshuh]).then(()=>{
window.parent.location.href="/regime/livedetail?id=" + window.liveid; window.parent.location.href="/regime/livedetail?id=" + window.liveid;
}) })

1
dist/js/iminit.js vendored
View File

@ -113,6 +113,7 @@ function formatDateTime (inputTime) {
}); });
tim.on(TIM.EVENT.KICKED_OUT, function(event) { tim.on(TIM.EVENT.KICKED_OUT, function(event) {
console.log("用户下线")
// 收到被踢下线通知 // 收到被踢下线通知
// event.name - TIM.EVENT.KICKED_OUT // event.name - TIM.EVENT.KICKED_OUT
// event.data.type - 被踢下线的原因,例如: // event.data.type - 被踢下线的原因,例如:

View File

@ -184,7 +184,7 @@ function setBtnClickFuc() {
headers: { "Authorization": "Bearer " + localStorage.getItem("token")}, headers: { "Authorization": "Bearer " + localStorage.getItem("token")},
method:"PUT", method:"PUT",
data:{ data:{
status: 2 livestatus: 2
}, },
success(){ success(){
res(1) res(1)

View File

@ -113,6 +113,7 @@ function formatDateTime (inputTime) {
}); });
tim.on(TIM.EVENT.KICKED_OUT, function(event) { tim.on(TIM.EVENT.KICKED_OUT, function(event) {
console.log("用户下线")
// 收到被踢下线通知 // 收到被踢下线通知
// event.name - TIM.EVENT.KICKED_OUT // event.name - TIM.EVENT.KICKED_OUT
// event.data.type - 被踢下线的原因,例如: // event.data.type - 被踢下线的原因,例如: