Files
MBTI_wang/api/config/app.php
2026-03-17 12:00:31 +08:00

106 lines
4.2 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2023 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// +----------------------------------------------------------------------
// | 应用设置
// +----------------------------------------------------------------------
return [
// +----------------------------------------------------------------------
// | 应用基础配置
// +----------------------------------------------------------------------
// 应用名称
'app_name' => env('app.name', ''),
// 应用地址
'app_host' => env('app.host', ''),
// 应用的命名空间
'app_namespace' => '',
// 是否启用路由
'with_route' => true,
// 默认应用
'default_app' => 'index',
// 默认时区
'default_timezone' => 'Asia/Shanghai',
// +----------------------------------------------------------------------
// | 应用调试配置
// +----------------------------------------------------------------------
// 应用调试模式(从环境变量读取,开发环境建议开启)
'app_debug' => env('app.debug', false),
// 应用Trace从环境变量读取开发环境建议开启
'app_trace' => env('app.trace', false),
// +----------------------------------------------------------------------
// | 输出配置
// +----------------------------------------------------------------------
// 默认输出类型
'default_return_type' => 'json',
// 默认AJAX 数据返回格式,可选json xml ...
'default_ajax_return' => 'json',
// 默认JSONP格式返回的处理方法
'default_jsonp_handler' => 'jsonpReturn',
// 默认JSONP处理方法
'var_jsonp_handler' => 'callback',
// +----------------------------------------------------------------------
// | 语言配置
// +----------------------------------------------------------------------
// 是否开启多语言
'lang_switch_on' => false,
// 默认语言
'default_lang' => 'zh-cn',
// 默认全局过滤方法 用逗号分隔多个
'default_filter' => '',
// +----------------------------------------------------------------------
// | 类库配置
// +----------------------------------------------------------------------
// 应用类库后缀
'class_suffix' => false,
// 控制器类后缀
'controller_suffix' => false,
// +----------------------------------------------------------------------
// | URL配置
// +----------------------------------------------------------------------
// 应用映射(可选)
'app_map' => [],
// 域名绑定(可选)
'domain_bind' => [],
// +----------------------------------------------------------------------
// | 异常处理配置
// +----------------------------------------------------------------------
// 异常页面的模板文件
'exception_tmpl' => app()->getThinkPath() . 'tpl/think_exception.tpl',
// 错误显示信息,非调试模式有效
'error_message' => '页面错误!请稍后再试~',
// 显示错误信息
'show_error_msg' => true,
// 异常处理handle类 留空使用 \think\exception\Handle
'exception_handle' => '',
// +----------------------------------------------------------------------
// | 其他配置
// +----------------------------------------------------------------------
// 应用模式状态
'app_status' => '',
];