初始化仓库

This commit is contained in:
Yao
2025-08-14 16:44:56 +08:00
commit 45b8c90ad8
5157 changed files with 664203 additions and 0 deletions

32
route/app.php Normal file
View File

@ -0,0 +1,32 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Console;
use think\facade\Route;
// 管理后台
Route::rule('admin/:any', function () {
return view(app()->getRootPath() . 'public/admin/index.html');
})->pattern(['any' => '\w+']);
// 手机端
Route::rule('mobile/:any', function () {
return view(app()->getRootPath() . 'public/mobile/index.html');
})->pattern(['any' => '\w+']);
// PC端
Route::rule('pc/:any', function () {
return view(app()->getRootPath() . 'public/pc/index.html');
})->pattern(['any' => '\w+']);
//定时任务
Route::rule('crontab', function () {
Console::call('crontab');
});