shuhao 3 minggu lalu
induk
melakukan
fb659ec1be
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. 3 0
      src/main/java/com/xiesx/fastboot/base/result/R.java

+ 3 - 0
src/main/java/com/xiesx/fastboot/base/result/R.java

@@ -27,6 +27,9 @@ public class R {
     }
 
     public static BaseResult succ(@NonNull Object data) {
+        if(data == null){
+            return succ();
+        }
         return BaseResult.builder().code(BaseResult.SUCCESS).msg(BaseResult.OP_MSG_SUCC).data(data).build();
     }