Browse Source

修改入口

moonsflyer 2 tháng trước cách đây
mục cha
commit
a817c9d3cc
1 tập tin đã thay đổi với 6 bổ sung11 xóa
  1. 6 11
      route/app.php

+ 6 - 11
route/app.php

@@ -13,15 +13,10 @@ use think\facade\Route;
 
 // PC商城端
 
-    $isOpen = \app\common\server\ConfigServer::get('pc', 'is_open', 1);
-    if(!$isOpen) {
-        return '';
-    }
-    Config::set(['app_trace' => false]);
-    return view(app()->getRootPath() . 'public/index.html');
+$isOpen = \app\common\server\ConfigServer::get('pc', 'is_open', 1);
+if(!$isOpen) {
+	return '';
+}
+Config::set(['app_trace' => false]);
+return view(app()->getRootPath() . 'public/pc/index.html');
 
-
-//定时任务
-Route::rule('crontab', function () {
-    \think\facade\Console::call('crontab');
-});