shuhao 3 hafta önce
ebeveyn
işleme
fb659ec1be

+ 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();
     }