1
0
Files
helper/application/config.php
2020-08-06 14:58:51 +08:00

48 lines
2.2 KiB
PHP

<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Env;
// +----------------------------------------------------------------------
// | 应用设置
// +----------------------------------------------------------------------
return [
// 应用Trace
'app_trace' => false,
// +----------------------------------------------------------------------
// | Trace设置 开启 app_trace 后 有效
// +----------------------------------------------------------------------
'trace' => [
'type' => Env::get('trace.type', false),
],
// +----------------------------------------------------------------------
// | 异常及错误设置
// +----------------------------------------------------------------------
// 异常页面的模板文件
'exception_tmpl' => APP_PATH . 'exception.tpl',
// 错误显示信息,非调试模式有效
'error_message' => '页面错误!请稍后再试~',
// 显示错误信息
'show_error_msg' => false,
// URL普通方式参数 用于自动生成
'url_common_param' => true,
// 域名部署
'url_domain_deploy' => true,
'url_html_suffix' => '',
// +----------------------------------------------------------------------
// | 默认全局过滤方法 用逗号分隔多个
// +----------------------------------------------------------------------
'default_filter' => 'trim',
// +----------------------------------------------------------------------
// | 用户密码加密串
// +----------------------------------------------------------------------
'data_auth_key' => 'Vg#:dxp4Tv=?1}3EeDA/KY]2qX$2RDnNwC.O+rQH',
];