From 81ff77c2d5fae7948d3240fa447184b9307dbfad Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期四, 24 二月 2022 10:02:47 +0800 Subject: [PATCH] update 调整用户登录 将日志调整到最后 防止获取不到用户警告 --- ruoyi-common/src/main/java/com/ruoyi/common/core/domain/R.java | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/R.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/R.java index 8fa4a64..7a24202 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/R.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/R.java @@ -38,23 +38,23 @@ private T data; public static <T> R<T> ok() { - return restResult(null, SUCCESS, null); + return restResult(null, SUCCESS, "鎿嶄綔鎴愬姛"); } public static <T> R<T> ok(T data) { - return restResult(data, SUCCESS, null); + return restResult(data, SUCCESS, "鎿嶄綔鎴愬姛"); } public static <T> R<T> ok(String msg) { return restResult(null, SUCCESS, msg); } - public static <T> R<T> ok(T data, String msg) { + public static <T> R<T> ok(String msg, T data) { return restResult(data, SUCCESS, msg); } public static <T> R<T> fail() { - return restResult(null, FAIL, null); + return restResult(null, FAIL, "鎿嶄綔澶辫触"); } public static <T> R<T> fail(String msg) { @@ -62,10 +62,10 @@ } public static <T> R<T> fail(T data) { - return restResult(data, FAIL, null); + return restResult(data, FAIL, "鎿嶄綔澶辫触"); } - public static <T> R<T> fail(T data, String msg) { + public static <T> R<T> fail(String msg, T data) { return restResult(data, FAIL, msg); } -- Gitblit v1.9.3