名字修改
parent
cd4ad1da3a
commit
02e214f754
|
@ -171,15 +171,15 @@ public class PlayerLogic {
|
||||||
String temp = value.substring(i, i + 1);
|
String temp = value.substring(i, i + 1);
|
||||||
|
|
||||||
if (EmojiUtil.isContainEmoji(temp)) {
|
if (EmojiUtil.isContainEmoji(temp)) {
|
||||||
LOGGER.error("==========> error , because of Emoji...");
|
LOGGER.error("==========> error , because of Emoji...{}",value);
|
||||||
return -1;// 如果含有敏感词汇 -1
|
return -1;// 如果含有敏感词汇 -1
|
||||||
}
|
}
|
||||||
|
|
||||||
if (temp.matches(chinese)) {
|
// if (temp.matches(chinese)) {
|
||||||
valueLength += 2;
|
// valueLength += 2;
|
||||||
} else {
|
// } else {
|
||||||
valueLength += 1;
|
valueLength += 1;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
return valueLength;
|
return valueLength;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue