AjaxResult中isError方法错误修改

Signed-off-by: taest <876239615@qq.com>
master
taest 2022-09-22 01:21:17 +00:00 committed by Gitee
parent f250c6ee93
commit 11de8aa17b
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();
} }
/** /**