!253 AjaxResult中isError方法逻辑修改

Merge pull request !253 from taest/N/A
product
若依 2022-09-22 01:59:28 +00:00 committed by Gitee
commit 53b84261f8
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()
{
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()
{
return Objects.equals(HttpStatus.SUCCESS, this.get(CODE_TAG));
return !isSuccess();
}
/**