RuoYi
2023-06-30 356b451b2ad0f3e51eb5473c4d14fdfe3386ac07
ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/web/domain/AjaxResult.java
@@ -128,7 +128,7 @@
    /**
     * 返回错误消息
     * 
     * @return
     * @return 错误消息
     */
    public static AjaxResult error()
    {
@@ -139,7 +139,7 @@
     * 返回错误消息
     * 
     * @param msg 返回内容
     * @return 警告消息
     * @return 错误消息
     */
    public static AjaxResult error(String msg)
    {
@@ -151,7 +151,7 @@
     * 
     * @param msg 返回内容
     * @param data 数据对象
     * @return 警告消息
     * @return 错误消息
     */
    public static AjaxResult error(String msg, Object data)
    {
@@ -163,7 +163,7 @@
     * 
     * @param code 状态码
     * @param msg 返回内容
     * @return 警告消息
     * @return 错误消息
     */
    public static AjaxResult error(int code, String msg)
    {
@@ -181,13 +181,23 @@
    }
    /**
     * 是否为警告消息
     *
     * @return 结果
     */
    public boolean isWarn()
    {
        return Objects.equals(HttpStatus.WARN, this.get(CODE_TAG));
    }
    /**
     * 是否为错误消息
     *
     * @return 结果
     */
    public boolean isError()
    {
        return !isSuccess();
        return Objects.equals(HttpStatus.ERROR, this.get(CODE_TAG));
    }
    /**