diff --git a/config/app.php b/config/app.php index 80741d6cc..eec5f517a 100644 --- a/config/app.php +++ b/config/app.php @@ -18,8 +18,6 @@ return [ 'app_namespace' => '', // 是否启用路由 'with_route' => true, - // 是否启用事件 - 'with_event' => true, // 开启应用快速访问 'app_express' => true, // 默认应用 diff --git a/config/cookie.php b/config/cookie.php index 6425bc22a..2f8ad3c08 100644 --- a/config/cookie.php +++ b/config/cookie.php @@ -20,10 +20,12 @@ return [ 'path' => '/', // cookie 有效域名 'domain' => '', - // cookie 启用安全传输 + // cookie 安全传输 'secure' => false, - // httponly 设置 + // httponly 访问设置 'httponly' => true, // 是否使用 setcookie 'setcookie' => true, + // samesite 设置,支持 'strict' 'lax' + 'samesite' => '', ]; diff --git a/config/database.php b/config/database.php index 60f168ec1..be3705785 100644 --- a/config/database.php +++ b/config/database.php @@ -58,7 +58,7 @@ return [ // 监听SQL 'trigger_sql' => true, // 开启字段缓存 - 'fields_cache' => app()->debug(), + 'fields_cache' => false, ], ], ]; diff --git a/config/log.php b/config/log.php index eef26e286..67063fb1b 100644 --- a/config/log.php +++ b/config/log.php @@ -21,7 +21,7 @@ return [ // 日志类型记录的通道 ['error'=>'email',...] 'type_channel' => [], // 关闭全局日志写入 - 'close' => true, + 'close' => false, // 全局日志处理 支持闭包 'processor' => null, // 日志通道列表 diff --git a/config/route.php b/config/route.php index 16dcb3bd0..3a15286cd 100644 --- a/config/route.php +++ b/config/route.php @@ -36,7 +36,7 @@ return [ 'controller_suffix' => false, // 默认的路由变量规则 'default_route_pattern' => '[\w\.]+', - // 是否开启请求缓存 true自动缓存 支持设置请求缓存规则 + // 是否开启请求缓存 true 自动缓存 支持设置请求缓存规则 'request_cache' => false, // 请求缓存有效期 'request_cache_expire' => null, diff --git a/config/session.php b/config/session.php index cc865eaaf..0aba17f7c 100644 --- a/config/session.php +++ b/config/session.php @@ -14,8 +14,14 @@ // +---------------------------------------------------------------------- return [ + // 字段名称 + 'name' => 'PHPSESSID', + // 驱动方式 'type' => 'file', + // 存储连接 'store' => null, + // 过期时间 'expire' => 1800, + // 前缀 'prefix' => '', -]; +]; \ No newline at end of file diff --git a/vendor/services.php b/vendor/services.php index 146069a0e..3e01b3762 100644 --- a/vendor/services.php +++ b/vendor/services.php @@ -1,5 +1,5 @@ 'think\\admin\\Library',