ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/domain/R.java
@@ -17,6 +17,10 @@ /** 失败 */ public static final int FAIL = Constants.FAIL; /** * 登陆失效 */ public static final int TOKEN_ERROR = Constants.TOKEN_ERROR; private int code; @@ -43,6 +47,10 @@ { return restResult(null, FAIL, null); } public static <T> R<T> tokenError(String msg) { return restResult(null, TOKEN_ERROR, msg); } public static <T> R<T> fail(String msg) {