src/Route.php
public static function main($route = 'mca')
    {
        self::$config          = config('route');
        self::$thisRule['uri'] = self::$uri = self::parseUri();

        // 检查规则路由
        if (self::$config['open_route']) {

            include_once CONFIG_PATH . 'route.php';

            self::$uri = self::getRouteUrl('/' . self::$uri);
        }

        //转换Url参数为GET参数
        $uriArr = explode('/s/', self::$uri);
        if (isset($uriArr[1])) {
            self::changeGetValue($uriArr[1], ['isGet' => true]);
        }

        $routeArr = explode('/', ltrim(reset($uriArr), '/'));

        // 开启指定结构层数
        if (self::$config['open_level']) {
            $routeArr = array_values(array_slice($baseUriArr, 0, self::$config['level']));
        }

        define('MODULE', implode('.', array_slice($routeArr, 0, -2)));
        define('CONTROLLER', parsename(implode(array_slice($routeArr, -2, 1)), true));
        define('ACTION', end($routeArr));

        $class = ['app', str_replace('.', '\\', MODULE), CONTROLLER];

        return self::$class = implode('\\', $class);

    }
public static function main($route = 'mca')
    {
        self::$config          = config('route');
        self::$thisRule['uri'] = self::$uri = self::parseUri();

        // 检查规则路由
        if (self::$config['open_route']) {

            include_once CONFIG_PATH . 'route.php';

            self::$uri = self::getRouteUrl('/' . self::$uri);
        }

        //转换Url参数为GET参数
        $uriArr = explode('/s/', self::$uri);
        if (isset($uriArr[1])) {
            self::changeGetValue($uriArr[1], ['isGet' => true]);
        }

        $routeArr = explode('/', ltrim(reset($uriArr), '/'));

        // 开启指定结构层数
        if (self::$config['open_level']) {
            $routeArr = array_values(array_slice($baseUriArr, 0, self::$config['level']));
        }

        define('MODULE', implode('.', array_slice($routeArr, 0, -2)));
        define('CONTROLLER', parsename(implode(array_slice($routeArr, -2, 1)), true));
        define('ACTION', end($routeArr));

        $class = ['app', str_replace('.', '\\', MODULE), CONTROLLER];

        return self::$class = implode('\\', $class);

    }
执行主体