修改配置文件

This commit is contained in:
Anyon 2020-11-23 10:34:28 +08:00
parent e252f9ba78
commit da61b6d407
11 changed files with 24 additions and 18 deletions

View File

@ -18,7 +18,7 @@ return [
'app_namespace' => '',
// 是否启用路由
'with_route' => true,
// 开启应用快速访问
// 应用快速访问
'app_express' => true,
// 默认应用
'default_app' => 'index',
@ -30,8 +30,8 @@ return [
'domain_bind' => [],
// 禁止URL访问的应用列表自动多应用模式有效
'deny_app_list' => [],
// 异常页面的模板文件
'exception_tmpl' => app()->getBasePath() . 'admin/view/error.tpl',
// 错误显示信息,非调试模式有效
// 非调试模式时显示错误的消息
'error_message' => '页面错误!请稍后再试~',
// 调试模式异常页面的模板文件
'exception_tmpl' => app()->getBasePath() . 'admin/view/error.tpl',
];

View File

@ -16,7 +16,7 @@
return [
// 默认缓存驱动
'default' => 'file',
// 缓存连接方式配置
// 缓存连接配置
'stores' => [
'file' => [
// 驱动方式
@ -33,4 +33,4 @@ return [
'serialize' => [],
],
],
];
];

View File

@ -28,4 +28,4 @@ return [
'setcookie' => true,
// samesite 设置,支持 'strict' 'lax'
'samesite' => '',
];
];

View File

@ -14,11 +14,11 @@
// +----------------------------------------------------------------------
return [
// 默认日志记录通道
// 默认日志通道
'default' => 'file',
// 日志记录级别
'level' => [],
// 日志类型记录的通道 ['error'=>'email',...]
// 日志类型记录的通道
'type_channel' => [],
// 关闭全局日志写入
'close' => false,
@ -34,11 +34,11 @@ return [
// 单文件日志写入
'single' => true,
// 指定日志类型
'level' => ['notice', 'error', 'sql'],
'level' => ['info', 'notice', 'error', 'sql'],
// 独立日志级别
'apart_level' => true,
// 每个文件大小 ( 10兆 )
'file_size' => 1024 * 1024 * 10,
'file_size' => 10485760,
// 日志日期格式
'time_format' => 'Y-m-d H:i:s',
// 最大日志文件数量
@ -55,4 +55,4 @@ return [
'realtime_write' => false,
],
],
];
];

View File

@ -52,4 +52,4 @@ return [
'default_jsonp_handler' => 'jsonpReturn',
// 默认JSONP处理方法
'var_jsonp_handler' => 'callback',
];
];

View File

@ -22,6 +22,6 @@ return [
'store' => null,
// 过期时间
'expire' => 1800,
// 前缀
// 文件前缀
'prefix' => '',
];

View File

@ -27,7 +27,7 @@ return [
// 去除HTML空格换行
'strip_space' => true,
// 模板缓存配置
'tpl_cache' => false,
'tpl_cache' => !app()->isDebug(),
// 模板引擎普通标签开始标记
'tpl_begin' => '{',
// 模板引擎普通标签结束标记
@ -42,4 +42,4 @@ return [
'__ROOT__' => rtrim(dirname(request()->basefile()), '\\/'),
'__FULL__' => rtrim(dirname(request()->basefile(true)), '\\/'),
],
];
];

View File

@ -5,4 +5,4 @@
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
</IfModule>

View File

@ -211,6 +211,9 @@ return array(
'app\\data\\controller\\ShopOrderService' => $baseDir . '/app/data/controller/ShopOrderService.php',
'app\\data\\controller\\ShopTruckCompany' => $baseDir . '/app/data/controller/ShopTruckCompany.php',
'app\\data\\controller\\ShopTruckTemplate' => $baseDir . '/app/data/controller/ShopTruckTemplate.php',
'app\\data\\controller\\StoreItem' => $baseDir . '/app/data/controller/StoreItem.php',
'app\\data\\controller\\StoreUsed' => $baseDir . '/app/data/controller/StoreUsed.php',
'app\\data\\controller\\StoreUser' => $baseDir . '/app/data/controller/StoreUser.php',
'app\\data\\controller\\api\\Auth' => $baseDir . '/app/data/controller/api/Auth.php',
'app\\data\\controller\\api\\Data' => $baseDir . '/app/data/controller/api/Data.php',
'app\\data\\controller\\api\\Goods' => $baseDir . '/app/data/controller/api/Goods.php',

View File

@ -339,6 +339,9 @@ class ComposerStaticInit4f89fd0e0503ccf740f2fa5757825d7b
'app\\data\\controller\\ShopOrderService' => __DIR__ . '/../..' . '/app/data/controller/ShopOrderService.php',
'app\\data\\controller\\ShopTruckCompany' => __DIR__ . '/../..' . '/app/data/controller/ShopTruckCompany.php',
'app\\data\\controller\\ShopTruckTemplate' => __DIR__ . '/../..' . '/app/data/controller/ShopTruckTemplate.php',
'app\\data\\controller\\StoreItem' => __DIR__ . '/../..' . '/app/data/controller/StoreItem.php',
'app\\data\\controller\\StoreUsed' => __DIR__ . '/../..' . '/app/data/controller/StoreUsed.php',
'app\\data\\controller\\StoreUser' => __DIR__ . '/../..' . '/app/data/controller/StoreUser.php',
'app\\data\\controller\\api\\Auth' => __DIR__ . '/../..' . '/app/data/controller/api/Auth.php',
'app\\data\\controller\\api\\Data' => __DIR__ . '/../..' . '/app/data/controller/api/Data.php',
'app\\data\\controller\\api\\Goods' => __DIR__ . '/../..' . '/app/data/controller/api/Goods.php',

2
vendor/services.php vendored
View File

@ -1,5 +1,5 @@
<?php
// This file is automatically generated at:2020-11-21 16:48:10
// This file is automatically generated at:2020-11-23 10:26:22
declare (strict_types = 1);
return array (
0 => 'think\\admin\\Library',