修改名字
parent
087d03e8dc
commit
d301d88bdf
|
|
@ -137,7 +137,7 @@ public class PlayerLogic {
|
||||||
private boolean checkName(ISession iSession, String name, int msgId) throws Exception {
|
private boolean checkName(ISession iSession, String name, int msgId) throws Exception {
|
||||||
int length = getStrLength(name);
|
int length = getStrLength(name);
|
||||||
if (length == -1) {
|
if (length == -1) {
|
||||||
MessageUtil.sendErrorResponse(iSession, 0, msgId, "");
|
MessageUtil.sendErrorResponse(iSession, Global.RENAME_DIRTY, msgId, "名字不合法");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (length > SGameSetting.getGameSetting().getMaxNameLength() || length < 1) {
|
if (length > SGameSetting.getGameSetting().getMaxNameLength() || length < 1) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue