唯一用户
parent
120e323629
commit
40231a05c3
|
@ -133,7 +133,6 @@ function receiveMessage(event)
|
||||||
let dm = {text: data.danmaku, uid: data.uid, uname: data.uname,
|
let dm = {text: data.danmaku, uid: data.uid, uname: data.uname,
|
||||||
event: getEvent(getFirstEventKeyword(data.danmaku+randomEvent)),
|
event: getEvent(getFirstEventKeyword(data.danmaku+randomEvent)),
|
||||||
is_new: isNew, is_admin: 0, is_exit: random2, is_leader: isLeader}
|
is_new: isNew, is_admin: 0, is_exit: random2, is_leader: isLeader}
|
||||||
|
|
||||||
// TODO 测试后 删除领舞随机
|
// TODO 测试后 删除领舞随机
|
||||||
let leaderRandomEvent = getEvent(getFirstEventKeyword(data.danmaku+randomEvent))
|
let leaderRandomEvent = getEvent(getFirstEventKeyword(data.danmaku+randomEvent))
|
||||||
let leader = {
|
let leader = {
|
||||||
|
@ -153,7 +152,9 @@ function receiveMessage(event)
|
||||||
|
|
||||||
let actionIndex = Math.floor(Math.random()*actionArr.length);
|
let actionIndex = Math.floor(Math.random()*actionArr.length);
|
||||||
let moveIndex = Math.floor(Math.random()*moveArr.length);
|
let moveIndex = Math.floor(Math.random()*moveArr.length);
|
||||||
peopleObj(dm.uname,dm.text,actionArr[actionIndex],moveArr[moveIndex]);
|
if(dm.is_new==0){
|
||||||
|
peopleObj(dm.uname,dm.text,actionArr[actionIndex],moveArr[moveIndex]);
|
||||||
|
}
|
||||||
num++;
|
num++;
|
||||||
|
|
||||||
$('.lingname').text(leader.uname);
|
$('.lingname').text(leader.uname);
|
||||||
|
|
Loading…
Reference in New Issue