src/Message.php
static public function getErrors(): array
    {
        //空
        if (!isset($_SESSION[self::ERROR])) {
            return [];
        }

        //用BR拼接
        $ret = $_SESSION[self::ERROR];

        //取出即销毁,下次就没了
        unset($_SESSION[self::ERROR]);
        return $ret;
    }
static public function getErrors(): array
    {
        //空
        if (!isset($_SESSION[self::ERROR])) {
            return [];
        }

        //用BR拼接
        $ret = $_SESSION[self::ERROR];

        //取出即销毁,下次就没了
        unset($_SESSION[self::ERROR]);
        return $ret;
    }
获取所有错误消息
@return array