优化逻辑

master
yin5th 2021-11-25 11:01:26 +08:00
parent 61e30220d0
commit 224acc8c59
1 changed files with 6 additions and 1 deletions

View File

@ -130,7 +130,7 @@ function receiveMessage(event)
return false return false
} }
adminList = ['内有猛犬小心','热心市民阿狄呐','流域_墨绿绿']; adminList = ['内有猛犬小心','热心市民阿狄呐','流域_墨绿绿'];
adminList = ['yin5th'];
// 大航海列表 // 大航海列表
if (adminList.length > 0) { if (adminList.length > 0) {
// 获取当前领舞人 // 获取当前领舞人
@ -213,6 +213,11 @@ function receiveMessage(event)
num++; num++;
// 显示领舞的昵称 // 显示领舞的昵称
$('.lingname').text(leader.uname); $('.lingname').text(leader.uname);
if (!isLeader) {
return false
}
// console.log(leader, '领舞人信息')
if(leader.event=='scale-left' || leader.event=='scale-right' || leader.event=='scale-bottom-left' || leader.event=='scale-bottom-right'){ if(leader.event=='scale-left' || leader.event=='scale-right' || leader.event=='scale-bottom-left' || leader.event=='scale-bottom-right'){
// 领舞喊镜头 // 领舞喊镜头
list.forEach(item=>{ list.forEach(item=>{