AjaxResult中isError方法错误修改

Signed-off-by: taest <876239615@qq.com>
pull/253/head
taest 2 years ago committed by Gitee
parent f250c6ee93
commit 11de8aa17b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -154,7 +154,7 @@ public class AjaxResult extends HashMap<String, Object>
*/ */
public boolean isSuccess() public boolean isSuccess()
{ {
return !isError(); return Objects.equals(HttpStatus.SUCCESS, this.get(CODE_TAG));
} }
/** /**
@ -164,7 +164,7 @@ public class AjaxResult extends HashMap<String, Object>
*/ */
public boolean isError() public boolean isError()
{ {
return Objects.equals(HttpStatus.SUCCESS, this.get(CODE_TAG)); return !isSuccess();
} }
/** /**

Loading…
Cancel
Save