Pre Merge pull request !253 from taest/N/A

This commit is contained in:
taest 2022-09-22 01:21:18 +00:00 committed by Gitee
commit f039e25ad8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 2 additions and 2 deletions

View File

@ -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();
} }
/** /**