// +---------------------------------------------------------------------- use think\facade\Route; Route::rule('/', 'index'); // 首页访问路由 Route::group(function () { Route::get('jie/:id', 'article/detail'); Route::get('column///','article/cate'); Route::rule('add','article/add'); Route::rule('edit/[:id]','article/edit'); //Route::rule('del/:id','article/delete'); }); Route::group(function () { Route::rule('u/:id', 'user/home'); }); Route::rule('login','login/index'); Route::rule('reg','Login/reg') ->middleware(\app\middleware\CheckRegister::class);