4
This commit is contained in:
+2
-1
@@ -18,7 +18,8 @@ return [
|
||||
[
|
||||
'class' => Monolog\Handler\RotatingFileHandler::class,
|
||||
'constructor' => [
|
||||
runtime_path() . '/logs/webman'.ceil(date('H')/6).'.log',
|
||||
//runtime_path() . '/logs/webman'.ceil(date('H')/6).'.log',
|
||||
runtime_path() . '/logs/webman.log',
|
||||
7, //$maxFiles
|
||||
Monolog\Logger::INFO,
|
||||
],
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ return [
|
||||
base_path() . '/plugin/app',
|
||||
base_path() . '/support',
|
||||
base_path() . '/resource',
|
||||
base_path() . '/.env',
|
||||
base_path() . '/.env'
|
||||
],
|
||||
// 文件后缀
|
||||
'monitor_extensions' => [
|
||||
|
||||
@@ -14,6 +14,9 @@
|
||||
|
||||
use Webman\Route;
|
||||
|
||||
Route::get('/u/{code}', [\app\controller\IndexController::class, 'user']);
|
||||
Route::get('/g/{code}', [\app\controller\IndexController::class, 'group']);
|
||||
|
||||
Route::fallback(function(){
|
||||
$fn = base_path().'/public/index.html';
|
||||
if(file_exists($fn)){
|
||||
|
||||
Reference in New Issue
Block a user