Compare commits

...

2 Commits

Author SHA1 Message Date
yin5th fe4c972d3c 翅膀 2021-12-10 10:07:23 +08:00
yin5th 3911ff2af4 翅膀 2021-12-10 09:52:23 +08:00
2 changed files with 10 additions and 11 deletions

View File

@ -152,8 +152,8 @@ function peopleObj(name,uid,say,action,active_time, is_admin, decoration){
} }
// 添加翅膀 // 添加翅膀
if (decoration.indexOf('people-wing') != -1) { if (decoration.indexOf('people-block') != -1) {
decorationWing = 'people-wing' decorationWing = 'people-block'
// console.log(decorationWing, '我的翅膀') // console.log(decorationWing, '我的翅膀')
} }
} }
@ -171,7 +171,7 @@ function peopleObj(name,uid,say,action,active_time, is_admin, decoration){
<div class="stick stick-swing ${decorationStick} ${bigStick} ${comment.ying_guang}"></div> <div class="stick stick-swing ${decorationStick} ${bigStick} ${comment.ying_guang}"></div>
<div class="people-name ">${comment.name}</div> <div class="people-name ">${comment.name}</div>
</div> </div>
<div class="people-wing ">&nbsp;</div> <div class="people-wing ${decorationWing}">&nbsp;</div>
</div> </div>
</div>` </div>`
});//如果是舰长需要加上stick-swing-big-tow充值用户加上stick-christmas同时去掉stick-swing-big-tow });//如果是舰长需要加上stick-swing-big-tow充值用户加上stick-christmas同时去掉stick-swing-big-tow

View File

@ -210,8 +210,9 @@ function delExpireDiv() {
} }
let timestamp = parseInt(new Date().getTime()/1000) let timestamp = parseInt(new Date().getTime()/1000)
let delTime = timestamp - speakExpireTime
let delList = $(".dance-people").filter(function() { let delList = $(".dance-people").filter(function() {
return $(this).attr("data-time") < timestamp - speakExpireTime; return $(this).attr("data-time") < delTime
}) })
// console.log(delList.length, speakExpireTime+'秒未说话人数') // console.log(delList.length, speakExpireTime+'秒未说话人数')
delList.remove(); delList.remove();
@ -238,15 +239,12 @@ function receiveMessage(event)
// 送礼物列表 // 送礼物列表
let giftList = dataList.gift let giftList = dataList.gift
console.log(giftList, '获取的礼物列表') // console.log(giftList, '获取的礼物列表')
if (giftList.length > 0) { if (giftList.length > 0) {
updateUserCell(giftList) updateUserCell(giftList)
console.log(userCell, '用户电池记录') console.log(userCell, '用户电池记录')
} }
// console.log(adminList, '舰长列表')
// console.log(highList, '高能榜列表')
if (data.length <= 0) { if (data.length <= 0) {
return false return false
} }
@ -303,7 +301,7 @@ function receiveMessage(event)
let decoration = [] let decoration = []
let userCellNum = userCell[dm.uname] let userCellNum = userCell[dm.uname]
// userCell['yin5th'] = 99 userCell['yin5th'] = 99
// userCell['未来狗头耀武扬威什么'] = 1 // userCell['未来狗头耀武扬威什么'] = 1
if (userCellNum != undefined) { if (userCellNum != undefined) {
// 1个电池送圣诞帽 // 1个电池送圣诞帽
@ -355,7 +353,8 @@ function receiveMessage(event)
} }
} }
setTimeout(()=>{//关闭当前说话 setTimeout(()=>{
//关闭当前说话
$(`#${dm.uid} .speak`).addClass("dn"); $(`#${dm.uid} .speak`).addClass("dn");
},3000) },3000)
// 舞者喊舞---动作舞 // 舞者喊舞---动作舞
@ -469,7 +468,7 @@ function receiveMessage(event)
// -------------------- 每条弹幕处理 end ----------------------- // -------------------- 每条弹幕处理 end -----------------------
} }
// 创建随机任务 // 创建随机人物
function createVirtual() { function createVirtual() {
for (let i = 0; i < virtualNum; i++) { for (let i = 0; i < virtualNum; i++) {
let eventName = eventTextList[Math.floor(Math.random()*(eventTextList.length-1))] let eventName = eventTextList[Math.floor(Math.random()*(eventTextList.length-1))]