From fe4c972d3c58c43a3c21fbda24be03fd92c7ed0f Mon Sep 17 00:00:00 2001 From: yin5th <541304803@qq.com> Date: Fri, 10 Dec 2021 10:07:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BF=85=E8=86=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/handle.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/js/handle.js b/js/handle.js index d19eccd..a28cf89 100644 --- a/js/handle.js +++ b/js/handle.js @@ -239,15 +239,12 @@ function receiveMessage(event) // 送礼物列表 let giftList = dataList.gift - console.log(giftList, '获取的礼物列表') + // console.log(giftList, '获取的礼物列表') if (giftList.length > 0) { updateUserCell(giftList) console.log(userCell, '用户电池记录') } - // console.log(adminList, '舰长列表') - // console.log(highList, '高能榜列表') - if (data.length <= 0) { return false } @@ -304,7 +301,7 @@ function receiveMessage(event) let decoration = [] let userCellNum = userCell[dm.uname] - // userCell['yin5th'] = 99 + userCell['yin5th'] = 99 // userCell['未来狗头耀武扬威什么'] = 1 if (userCellNum != undefined) { // 1个电池送圣诞帽 @@ -356,7 +353,8 @@ function receiveMessage(event) } } - setTimeout(()=>{//关闭当前说话 + setTimeout(()=>{ + //关闭当前说话 $(`#${dm.uid} .speak`).addClass("dn"); },3000) // 舞者喊舞---动作舞 @@ -470,7 +468,7 @@ function receiveMessage(event) // -------------------- 每条弹幕处理 end ----------------------- } -// 创建随机任务 +// 创建随机人物 function createVirtual() { for (let i = 0; i < virtualNum; i++) { let eventName = eventTextList[Math.floor(Math.random()*(eventTextList.length-1))]