上传一波

master
yin5th 2021-11-20 21:23:59 +08:00
parent d31cd6d4be
commit 12eb6709d9
1 changed files with 4 additions and 0 deletions

View File

@ -56,6 +56,8 @@ function receiveMessage(event)
return false
}
// custom.js中 每条弹幕的处理 放到了此处
// -------------------- 每条弹幕处理 begin -----------------------
let random1 = uid in uidList ? 1 : 0
let random2 = Math.floor(Math.random() + 0.5)
let dm = {text: data.danmaku, uid: data.uid, uname: data.uname,
@ -86,6 +88,8 @@ function receiveMessage(event)
},3000)
}
// -------------------- 每条弹幕处理 end -----------------------
// event.source 就当前弹出页的来源页面
// event.data 是 "hello there!"