AjaxResult中isError方法错误修改

Signed-off-by: taest <876239615@qq.com>
This commit is contained in:
taest
2022-09-22 01:21:17 +00:00
committed by Gitee
parent f250c6ee93
commit 11de8aa17b

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