更新功能

This commit is contained in:
2019-06-29 21:14:58 +08:00
parent d3eef9c5fd
commit 6bfc2db94a
23 changed files with 1046 additions and 955 deletions

View File

@@ -25,7 +25,7 @@ return [
// 是否启用事件
'with_event' => true,
// 自动多应用模式
'auto_multi_app' => true,
'auto_multi_app' => false,
// 应用映射(自动多应用模式有效)
'app_map' => [],
// 域名绑定(自动多应用模式有效)

View File

@@ -15,6 +15,17 @@ return [
// 默认使用的数据库连接配置
'default' => Env::get('database.driver', 'mysql'),
// 自定义时间查询规则
'time_query_rule' => [],
// 自动写入时间戳字段
// true为自动识别类型 false关闭
// 字符串则明确指定时间字段类型 支持 int timestamp datetime date
'auto_timestamp' => true,
// 时间字段取出后的默认时间格式
'datetime_format' => 'Y-m-d H:i:s',
// 数据库连接配置信息
'connections' => [
'mysql' => [
@@ -30,8 +41,6 @@ return [
'password' => Env::get('database.password', ''),
// 端口
'hostport' => Env::get('database.hostport', '3306'),
// 连接dsn
'dsn' => '',
// 数据库连接参数
'params' => [],
// 数据库编码默认采用utf8
@@ -52,18 +61,10 @@ return [
'fields_strict' => true,
// 是否需要进行SQL性能分析
'sql_explain' => false,
// Builder类
'builder' => '',
// Query类
'query' => '',
// 是否需要断线重连
'break_reconnect' => false,
],
// 更多的数据库配置信息
],
// 自动写入时间戳字段
'auto_timestamp' => 'timestamp',
// 时间字段取出后的默认时间格式
'datetime_format' => 'Y-m-d H:i:s',
];

View File

@@ -6,11 +6,11 @@ return [
'default' => Env::get('filesystem.driver', 'local'),
'disks' => [
'local' => [
'driver' => 'local',
'root' => app()->getRuntimePath() . 'storage',
'type' => 'local',
'root' => app()->getRuntimePath() . 'storage',
],
'public' => [
'driver' => 'local',
'type' => 'local',
'root' => app()->getRootPath() . 'public/storage',
'url' => '/storage',
'visibility' => 'public',

View File

@@ -8,23 +8,46 @@
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Env;
// +----------------------------------------------------------------------
// | 日志设置
// +----------------------------------------------------------------------
return [
// 日志记录方式,内置 file socket 支持扩展
'type' => 'File',
// 日志保存目录
'path' => '',
// 默认日志记录通道
'default' => Env::get('log.channel', 'file'),
// 日志记录级别
'level' => [],
// 单文件日志写入
'single' => false,
// 独立日志级别
'apart_level' => [],
// 最大日志文件数量
'max_files' => 0,
// 是否关闭日志写入
'close' => false,
'level' => [],
// 日志类型记录的通道 ['error'=>'email',...]
'type_channel' => [],
// 关闭全局日志写入
'close' => false,
// 全局日志处理 支持闭包
'processor' => null,
// 日志通道列表
'channels' => [
'file' => [
// 日志记录方式
'type' => 'File',
// 日志保存目录
'path' => '',
// 单文件日志写入
'single' => false,
// 独立日志级别
'apart_level' => [],
// 最大日志文件数量
'max_files' => 0,
// 使用JSON格式记录
'json' => false,
// 日志处理
'processor' => null,
// 关闭通道日志写入
'close' => false,
// 日志输出格式化
'format' => '[%s][%s] %s',
],
// 其它日志通道配置
],
];

View File

@@ -28,8 +28,6 @@ return [
'route_rule_merge' => false,
// 路由是否完全匹配
'route_complete_match' => false,
// 使用注解路由
'route_annotation' => false,
// 是否开启路由缓存
'route_check_cache' => false,
// 路由缓存连接参数