|
@@ -37,6 +37,7 @@ public class AjaxJson extends LinkedHashMap<String, Object> implements Serializa
|
|
|
public static final int CODE_WARNING = 501;
|
|
|
public static final int CODE_NOT_JUR = 403;
|
|
|
public static final int CODE_NOT_LOGIN = 401;
|
|
|
+ public static final int ERROR_ENTER_PORT = 405;
|
|
|
public static final int CODE_INVALID_REQUEST = 400;
|
|
|
|
|
|
|
|
@@ -168,6 +169,9 @@ public class AjaxJson extends LinkedHashMap<String, Object> implements Serializa
|
|
|
public static AjaxJson getError(String msg) {
|
|
|
return new AjaxJson(CODE_ERROR, msg, null, null);
|
|
|
}
|
|
|
+ public static AjaxJson getError(int code,String msg) {
|
|
|
+ return new AjaxJson(code, msg, null, null);
|
|
|
+ }
|
|
|
|
|
|
|
|
|
public static AjaxJson getWarning() {
|