// +---------------------------------------------------------------------- use think\facade\Route; //手机端 Route::rule('mobile/:any', function () { return view(app()->getRootPath() . 'public/mobile/index.html'); })->pattern(['any' => '\w+']); //管理后台 Route::rule('admin/:any', function () { return view(app()->getRootPath() . 'public/admin/index.html'); })->pattern(['any' => '\w+']); //PC端 Route::rule('pc/:any', function () { return view(app()->getRootPath() . 'public/admin/index.html'); })->pattern(['any' => '\w+']); // 客服 Route::rule('kefu/:any', function () { return view(app()->getRootPath() . 'public/kefu/index.html'); })->pattern(['any' => '\w+']); //定时任务 Route::rule('crontab', function () { \think\facade\Console::call('crontab'); }); //商家管理端 Route::rule('business/:any', function () { return view(app()->getRootPath() . 'public/business/index.html'); })->pattern(['any' => '\w+']);