From 02e214f754d52f394a11db8a2f546aa753a7ab72 Mon Sep 17 00:00:00 2001 From: lvxinran Date: Wed, 14 Aug 2019 11:56:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8D=E5=AD=97=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ljsd/jieling/logic/player/PlayerLogic.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/serverlogic/src/main/java/com/ljsd/jieling/logic/player/PlayerLogic.java b/serverlogic/src/main/java/com/ljsd/jieling/logic/player/PlayerLogic.java index 4fe9ae356..d21ae0f3a 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/logic/player/PlayerLogic.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/logic/player/PlayerLogic.java @@ -171,15 +171,15 @@ public class PlayerLogic { String temp = value.substring(i, i + 1); if (EmojiUtil.isContainEmoji(temp)) { - LOGGER.error("==========> error , because of Emoji..."); + LOGGER.error("==========> error , because of Emoji...{}",value); return -1;// 如果含有敏感词汇 -1 } - if (temp.matches(chinese)) { - valueLength += 2; - } else { +// if (temp.matches(chinese)) { +// valueLength += 2; +// } else { valueLength += 1; - } +// } } return valueLength; }