This commit is contained in:
你的名字
2025-07-14 10:22:40 +08:00
commit 0483b4b364
1388 changed files with 219353 additions and 0 deletions

31
config/app.php Executable file
View File

@ -0,0 +1,31 @@
<?php
// +----------------------------------------------------------------------
// | ThinkAdmin
// +----------------------------------------------------------------------
// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
// +----------------------------------------------------------------------
// | 官方网站: http://demo.thinkadmin.top
// +----------------------------------------------------------------------
// | 开源协议 ( https://mit-license.org )
// +----------------------------------------------------------------------
// | gitee 代码仓库3https://gitee.com/zoujingli/ThinkAdmin
// | github 代码仓库3https://github.com/zoujingli/ThinkAdmin
// +----------------------------------------------------------------------
return [
// 应用调试模式
'app_debug' => true,
// 应用Trace调试
'app_trace' => false,
// 0按名称成对解析 1按顺序解析
'url_param_type' => 1,
// 当前 ThinkAdmin 版本号
'thinkadmin_ver' => 'v5',
// 设置时区
// 设置时区为圣保罗
'DEFAULT_TIMEZONE' => 'America/Sao_Paulo',
'default_lang' => 'zh-cn', // 设置默认语言
'lang_switch_on' => true, // 开启多语言切换
'deny_module_list' => ['akszadmin']
];

25
config/cookie.php Executable file
View File

@ -0,0 +1,25 @@
<?php
// +----------------------------------------------------------------------
// | ThinkAdmin
// +----------------------------------------------------------------------
// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
// +----------------------------------------------------------------------
// | 官方网站: http://demo.thinkadmin.top
// +----------------------------------------------------------------------
// | 开源协议 ( https://mit-license.org )
// +----------------------------------------------------------------------
// | gitee 代码仓库3https://gitee.com/zoujingli/ThinkAdmin
// | github 代码仓库3https://github.com/zoujingli/ThinkAdmin
// +----------------------------------------------------------------------
return [
// cookie 保存时间
'expire' => 1800,
// cookie 启用安全传输
'secure' => false,
// httponly 设置
'httponly' => true,
// 是否使用 setcookie
'setcookie' => true,
];

35
config/database.php Executable file
View File

@ -0,0 +1,35 @@
<?php
// +----------------------------------------------------------------------
// | ThinkAdmin
// +----------------------------------------------------------------------
// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
// +----------------------------------------------------------------------
// | 官方网站: http://demo.thinkadmin.top
// +----------------------------------------------------------------------
// | 开源协议 ( https://mit-license.org )
// +----------------------------------------------------------------------
// | gitee 开源项目https://gitee.com/zoujingli/ThinkAdmin
// | github开源项目https://github.com/zoujingli/ThinkAdmin
// +----------------------------------------------------------------------
return [
// 数据库调试模式
'debug' => env('database.debug', true),
// 数据库类型
'type' => 'mysql',
// 服务器地址
'hostname' => env('database.hostname', '127.0.0.1'),
// 数据库名
'database' => env('database.database', '0302-2'),
// 用户名
'username' => env('database.username', '0302-2'),
// 密码
'password' => env('database.password', '0302-2'),
// 编码
'charset' => env('database.charset', 'utf8mb4'),
// 端口
'hostport' => env('database.hostport', '3306'),
// 主从
'deploy' => 0,
// 分离
'rw_separate' => false,
];

27
config/log.php Executable file
View File

@ -0,0 +1,27 @@
<?php
// +----------------------------------------------------------------------
// | ThinkAdmin
// +----------------------------------------------------------------------
// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
// +----------------------------------------------------------------------
// | 官方网站: http://demo.thinkadmin.top
// +----------------------------------------------------------------------
// | 开源协议 ( https://mit-license.org )
// +----------------------------------------------------------------------
// | gitee 代码仓库3https://gitee.com/zoujingli/ThinkAdmin
// | github 代码仓库3https://github.com/zoujingli/ThinkAdmin
// +----------------------------------------------------------------------
return [
// 设置日志文件名
'single' => 'single',
// 最多保留50个文件
'max_files' => 50,
// 日志每10兆分割文件
'file_size' => 10485760,
// 设置记录目录的类型
// 'level' => ['error'],
// 日志类型分别写入文件
'apart_level' => ['error', 'sql'],
];

26
config/session.php Executable file
View File

@ -0,0 +1,26 @@
<?php
// +----------------------------------------------------------------------
// | ThinkAdmin
// +----------------------------------------------------------------------
// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
// +----------------------------------------------------------------------
// | 官方网站: http://demo.thinkadmin.top
// +----------------------------------------------------------------------
// | 开源协议 ( https://mit-license.org )
// +----------------------------------------------------------------------
// | gitee 代码仓库3https://gitee.com/zoujingli/ThinkAdmin
// | github 代码仓库3https://github.com/zoujingli/ThinkAdmin
// +----------------------------------------------------------------------
/* 定义会话路径 */
$_path_ = env('runtime_path') . 'sess' . DIRECTORY_SEPARATOR;
file_exists($_path_) || mkdir($_path_, 0755, true);
$_name_ = 's' . substr(md5(__DIR__), -8);
/* 配置会话参数 */
return [
'prefix' => 'fw',
'path' => $_path_,
'name' => $_name_,
];

30
config/template.php Executable file
View File

@ -0,0 +1,30 @@
<?php
// +----------------------------------------------------------------------
// | ThinkAdmin
// +----------------------------------------------------------------------
// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
// +----------------------------------------------------------------------
// | 官方网站: http://demo.thinkadmin.top
// +----------------------------------------------------------------------
// | 开源协议 ( https://mit-license.org )
// +----------------------------------------------------------------------
// | gitee 代码仓库3https://gitee.com/zoujingli/ThinkAdmin
// | github 代码仓库3https://github.com/zoujingli/ThinkAdmin
// +----------------------------------------------------------------------
use think\facade\Config;
use think\facade\Request;
return [
// 去除HTML空格换行
'strip_space' => true,
// 开启模板编译缓存
'tpl_cache' => !Config::get('app_debug'),
// 定义模板替换字符串
'tpl_replace_string' => [
'__APP__' => rtrim(url('@'), '\\/'),
'__ROOT__' => rtrim(dirname(Request::basefile()), '\\/'),
'__FULL__' => rtrim(dirname(Request::basefile(true)), '\\/'),
],
];

28
config/wechat.php Executable file
View File

@ -0,0 +1,28 @@
<?php
// +----------------------------------------------------------------------
// | ThinkAdmin
// +----------------------------------------------------------------------
// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
// +----------------------------------------------------------------------
// | 官方网站: http://demo.thinkadmin.top
// +----------------------------------------------------------------------
// | 开源协议 ( https://mit-license.org )
// +----------------------------------------------------------------------
// | gitee 代码仓库3https://gitee.com/zoujingli/ThinkAdmin
// | github 代码仓库3https://github.com/zoujingli/ThinkAdmin
// +----------------------------------------------------------------------
return [
// 微信开放平台接口
'service_url' => 'https://demo.thinkadmin.top',
// 小程序支付参数
'miniapp' => [
'appid' => 'wx8c108930fe12b7ef',
'appsecret' => '13d829992a2b6a0a44195a4a580da56d',
'mch_id' => '1332187001',
'mch_key' => 'A82DC5BD1F3359081049C568D8502BC5',
'ssl_p12' => __DIR__ . '/cert/1332187001_20181030_cert.p12',
'cache_path' => env('runtime_path') . 'wechat' . DIRECTORY_SEPARATOR,
],
];