From 95f7ba00803ea1fe0d1cd751a3b316cf29a41431 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子li <15040126243@163.com>
Date: 星期三, 26 十月 2022 14:30:18 +0800
Subject: [PATCH] update 优化 oss 云厂商增加 华为obs关键字

---
 ruoyi-common/src/main/java/com/ruoyi/common/core/domain/R.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 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 12dc16c..1c7b1d8 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
@@ -75,11 +75,11 @@
         return r;
     }
 
-    public Boolean isError() {
-        return !isSuccess();
+    public static <T> Boolean isError(R<T> ret) {
+        return !isSuccess(ret);
     }
 
-    public Boolean isSuccess() {
-        return R.SUCCESS == getCode();
+    public static <T> Boolean isSuccess(R<T> ret) {
+        return R.SUCCESS == ret.getCode();
     }
 }

--
Gitblit v1.9.3