src/Route.php
public static function rule($url, $changeUrl = '/', $options = [])
    {

        $params      = isset($options['params']) ? $options['params'] : '';
        $suffix      = isset($options['suffix']) ? $options['suffix'] : '/';
        $limitSuffix = isset($options['limit_suffix']) ? explode(',', $options['limit_suffix']) : '';
        $jump        = isset($options['jump']) ? $options['jump'] : false;

        $key = md5($changeUrl . $params);

        self::$rule[self::$id] = [
            'url'          => $url,
            'change_url'   => $changeUrl,
            'params'       => $params,
            'suffix'       => $suffix,
            'limit_suffix' => $limitSuffix,
            'jump'         => $jump,
        ];

        self::$regularUrl['url'][md5($url . $params)]             = self::$id;
        self::$regularUrl['changeUrl'][md5($changeUrl . $params)] = self::$id;

        self::$id++;
    }
public static function rule($url, $changeUrl = '/', $options = [])
    {

        $params      = isset($options['params']) ? $options['params'] : '';
        $suffix      = isset($options['suffix']) ? $options['suffix'] : '/';
        $limitSuffix = isset($options['limit_suffix']) ? explode(',', $options['limit_suffix']) : '';
        $jump        = isset($options['jump']) ? $options['jump'] : false;

        $key = md5($changeUrl . $params);

        self::$rule[self::$id] = [
            'url'          => $url,
            'change_url'   => $changeUrl,
            'params'       => $params,
            'suffix'       => $suffix,
            'limit_suffix' => $limitSuffix,
            'jump'         => $jump,
        ];

        self::$regularUrl['url'][md5($url . $params)]             = self::$id;
        self::$regularUrl['changeUrl'][md5($changeUrl . $params)] = self::$id;

        self::$id++;
    }
保存路由规则
@date   2018-07-13T09:32:01+0800
@author ChenMingjiang
@param  [type]                   $url       [description]
@param  string                   $changeUrl [description]
@param  array                    $options   [description]
@return [type]                              [description]