From 19d06a5d109cbf954b2da1c9bce855c6a18dc0e9 Mon Sep 17 00:00:00 2001 From: zouap Date: Fri, 25 Feb 2022 16:43:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- public/home/home.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/home/home.js b/public/home/home.js index 06c0546ca..78b9d517c 100644 --- a/public/home/home.js +++ b/public/home/home.js @@ -94,9 +94,11 @@ socket.onmessage = function (e) { var currentTime = new Date().getTime(); for(var i = 0; i < messageQueue.length; i++){ var record = messageQueue[i]; - var actionName = getAction(record.OpType,isZh); - console.log("receive action type=" + record.OpType + " name=" + actionName); + if(record.ActUser == null){ + console.log("receive action type=" + record.OpType + " name=" + actionName + " but user is null."); + continue; + } var recordPrefix = getMsg(record); if(record.OpType == "6" || record.OpType == "10" || record.OpType == "12" || record.OpType == "13"){ html += recordPrefix + actionName;