名字修改
parent
cd4ad1da3a
commit
02e214f754
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue