first commit

This commit is contained in:
云泽网
2025-07-27 21:42:34 +08:00
commit c1cce5ccb4
2779 changed files with 340042 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
<?php
use think\facade\Config;
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+']);
//手机h5页面路由
Route::rule('pc/:any', function () {
$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');
})->pattern(['any' => '\w+']);
//定时任务
Route::rule('crontab', function () {
think\Console::call('crontab');
});