Compare commits

...

5 Commits

Author SHA1 Message Date
邹景立
88e8b5d4a3 Update phinx.php 2022-11-16 11:58:19 +08:00
邹景立
c3dcb3a9f6 增加备份配置 2022-11-16 11:56:23 +08:00
邹景立
4f8e4bf443 Update app.php 2022-11-16 11:54:48 +08:00
邹景立
5e153a92a9 Update lang.php 2022-11-16 11:54:03 +08:00
邹景立
d32c23432d 同步配置 2022-11-16 11:52:35 +08:00
5 changed files with 41 additions and 2 deletions

View File

@ -39,7 +39,7 @@ return [
'cors_methods' => 'GET,PUT,POST,PATCH,DELETE',
// CORS 跨域头部字段
'cors_headers' => 'Api-Type,Api-Name,Api-Uuid,Api-Token,User-Form-Token,User-Token,Token',
// 显示错误消息内容,仅模式有效
// 显示错误消息内容,仅产模式有效
'error_message' => '页面错误!请稍后再试~',
// 异常模板路径配置,仅开发模式有效
'exception_tmpl' => with_path('app/admin/view/error.php'),

View File

@ -33,5 +33,19 @@ return [
// 序列化机制
'serialize' => [],
],
'safe' => [
// 驱动方式
'type' => 'File',
// 缓存保存目录
'path' => with_path('safefile/cache/'),
// 缓存名称前缀
'prefix' => '',
// 缓存有效期 0 表示永久缓存
'expire' => 0,
// 缓存标签前缀
'tag_prefix' => 'tag:',
// 序列化机制
'serialize' => [],
],
],
];

View File

@ -21,6 +21,7 @@ return [
'allow_lang_list' => ['zh-cn'],
// 转义为对应语言包名称
'accept_language' => [
'en' => 'en-us',
'zh-hans-cn' => 'zh-cn',
],
// 多语言自动侦测变量名

24
config/phinx.php Normal file
View File

@ -0,0 +1,24 @@
<?php
// +----------------------------------------------------------------------
// | ThinkAdmin
// +----------------------------------------------------------------------
// | 版权所有 2014~2022 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
// +----------------------------------------------------------------------
// | 官方网站: https://thinkadmin.top
// +----------------------------------------------------------------------
// | 开源协议 ( https://mit-license.org )
// | 免费声明 ( https://thinkadmin.top/disclaimer )
// +----------------------------------------------------------------------
// | gitee 代码仓库https://gitee.com/zoujingli/ThinkAdmin
// | github 代码仓库https://github.com/zoujingli/ThinkAdmin
// +----------------------------------------------------------------------
return [
// 忽略数据表
'ignore' => [],
// 数据表结构
'tables' => [],
// 备份数据表
'backup' => [],
];

File diff suppressed because one or more lines are too long