封禁提示
parent
f30d36473d
commit
cbe1b7753e
|
@ -197,6 +197,9 @@ public enum ErrorCode implements IErrorCode {
|
|||
|
||||
public static final int tokenError = -103;
|
||||
|
||||
//被封
|
||||
public static final int nologin = -104;
|
||||
|
||||
int codeId;
|
||||
String errMsg;
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ public class Blocker {
|
|||
}
|
||||
if(iSession!=null) {
|
||||
if(forbidLogin.contains(iSession.getUid())){
|
||||
MessageUtil.sendErrorCode(iSession, ErrorCode.reloginCode, "您已被踢下线!");
|
||||
MessageUtil.sendErrorCode(iSession, ErrorCode.nologin, "您已被踢下线!");
|
||||
iSession.setOfflineType(ErrorCode.reloginCode);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue