This commit is contained in:
2020-11-30 11:59:11 +08:00
parent a0742923b5
commit 380eef939b
13 changed files with 32 additions and 10 deletions

20
dist/zhibo.html vendored
View File

@@ -411,6 +411,7 @@
const urldata = GetRequest('roomid')
window.roomid = urldata.roomid
window.mid = urldata.memberid
window.liveid = urldata.liveid
window.uname = urldata.name
</script>
@@ -436,6 +437,25 @@
<script src="./js/device-testing.js"></script>
<script src="./js/index.js"></script>
<a href="/regime/video" target="_top" id="navto"></a>
<script>
setInterval(()=>{
$.ajax({
url: window.url + 'onExitRoom',
headers: { "Authorization": "Bearer " + localStorage.getItem("token")},
method:"POST",
data:{
type:1,
memberid:window.mid,
liveid:window.liveid,
length:5
},
success(){
}
})
},5000)
</script>
</body>
</html>