Browse Source

修改入口

moonsflyer 2 months ago
parent
commit
7703516569
1 changed files with 1 additions and 25 deletions
  1. 1 25
      route/app.php

+ 1 - 25
route/app.php

@@ -11,42 +11,18 @@
 use think\facade\Config;
 use think\facade\Config;
 use think\facade\Route;
 use think\facade\Route;
 
 
-
-// 手机h5页面路由
-Route::rule('mobile/:any', function () {
-    $isOpen = \app\common\server\ConfigServer::get('h5', 'is_open', 1);
-    if(!$isOpen) {
-        return '';
-    }
-    Config::set(['app_trace' => false]);
-    return view(app()->getRootPath() . 'public/mobile/index.html');
-})->pattern(['any' => '\w+']);
-
-
 // PC商城端
 // PC商城端
-Route::rule('pc/:any', function () {
+
     $isOpen = \app\common\server\ConfigServer::get('pc', 'is_open', 1);
     $isOpen = \app\common\server\ConfigServer::get('pc', 'is_open', 1);
     if(!$isOpen) {
     if(!$isOpen) {
         return '';
         return '';
     }
     }
     Config::set(['app_trace' => false]);
     Config::set(['app_trace' => false]);
     return view(app()->getRootPath() . 'public/index.html');
     return view(app()->getRootPath() . 'public/index.html');
-})->pattern(['any' => '\w+']);
 
 
 
 
-// 商家移动端
-Route::rule('business/:any', function () {
-    Config::set(['app_trace' => false]);
-    return view(app()->getRootPath() . 'public/business/index.html');
-})->pattern(['any' => '\w+']);
 
 
 
 
-// 客服
-Route::rule('kefu/:any', function () {
-    Config::set(['app_trace' => false]);
-    return view(app()->getRootPath() . 'public/kefu/index.html');
-})->pattern(['any' => '\w+']);
-
 //定时任务
 //定时任务
 Route::rule('crontab', function () {
 Route::rule('crontab', function () {
     \think\facade\Console::call('crontab');
     \think\facade\Console::call('crontab');