20 lines
441 B
PHP
20 lines
441 B
PHP
<?php
|
|
|
|
use think\facade\Console;
|
|
use think\facade\Route;
|
|
|
|
// 管理后台
|
|
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/pc/index.html');
|
|
})->pattern(['any' => '\w+']);
|
|
|
|
//定时任务
|
|
Route::rule('crontab', function () {
|
|
Console::call('crontab');
|
|
});
|