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")},
|
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
1
dist/js/iminit.js
vendored
@ -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 - 被踢下线的原因,例如:
|
||||||
|
@ -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)
|
||||||
|
@ -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 - 被踢下线的原因,例如:
|
||||||
|
Loading…
Reference in New Issue
Block a user