src/Message.php
static public function hasError(): bool
    {
        if (!isset($_SESSION[self::ERROR])) {
            return false;
        }
        return count($_SESSION[self::ERROR]) > 0;
    }
static public function hasError(): bool
    {
        if (!isset($_SESSION[self::ERROR])) {
            return false;
        }
        return count($_SESSION[self::ERROR]) > 0;
    }
检查有没有错误消息
@return boolean