123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396 |
- <?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 [
- // +----------------------------------------------------------------------
- // | 应用设置
- // +----------------------------------------------------------------------
- // 应用命名空间
- 'app_namespace' => 'app',
- // 应用调试模式
- 'app_debug' => true,
- // 应用Trace
- 'app_trace' => true,
- // 应用模式状态
- 'app_status' => '',
- // 是否支持多模块
- 'app_multi_module' => true,
- // 入口自动绑定模块
- 'auto_bind_module' => false,
- // 注册的根命名空间
- 'root_namespace' => [],
- // 扩展函数文件
- 'extra_file_list' => [THINK_PATH . 'helper' . EXT],
- // 默认输出类型
- 'default_return_type' => 'html',
- // 默认AJAX 数据返回格式,可选json xml ...
- 'default_ajax_return' => 'json',
- // 默认JSONP格式返回的处理方法
- 'default_jsonp_handler' => 'jsonpReturn',
- // 默认JSONP处理方法
- 'var_jsonp_handler' => 'callback',
- // 默认时区
- 'default_timezone' => 'PRC',
- // 是否开启多语言
- 'lang_switch_on' => true,
- // 默认全局过滤方法 用逗号分隔多个
- 'default_filter' => '',
- // 默认语言
- 'default_lang' => 'zh-cn',
- // 应用类库后缀
- 'class_suffix' => false,
- // 控制器类后缀
- 'controller_suffix' => false,
- // +----------------------------------------------------------------------
- // | 模块设置
- // +----------------------------------------------------------------------
- // 默认模块名
- 'default_module' => 'index',
- // 禁止访问模块
- 'deny_module_list' => ['common', 'admin'],
- // 默认控制器名
- 'default_controller' => 'Index',
- // 默认操作名
- 'default_action' => 'index',
- // 默认验证器
- 'default_validate' => '',
- // 默认的空控制器名
- 'empty_controller' => 'Error',
- // 操作方法后缀
- 'action_suffix' => '',
- // 自动搜索控制器
- 'controller_auto_search' => true,
- // +----------------------------------------------------------------------
- // | URL设置
- // +----------------------------------------------------------------------
- // PATHINFO变量名 用于兼容模式
- 'var_pathinfo' => 's',
- // 兼容PATH_INFO获取
- 'pathinfo_fetch' => ['ORIG_PATH_INFO', 'REDIRECT_PATH_INFO', 'REDIRECT_URL'],
- // pathinfo分隔符
- 'pathinfo_depr' => '/',
- // URL伪静态后缀
- 'url_html_suffix' => 'html',
- // URL普通方式参数 用于自动生成
- 'url_common_param' => false,
- // URL参数方式 0 按名称成对解析 1 按顺序解析
- 'url_param_type' => 0,
- // 是否开启路由
- 'url_route_on' => true,
- // 路由使用完整匹配
- 'route_complete_match' => false,
- // 路由配置文件(支持配置多个)
- 'route_config_file' => ['route'],
- // 是否强制使用路由
- 'url_route_must' => false,
- // 域名部署
- 'url_domain_deploy' => false,
- // 域名根,如thinkphp.cn
- 'url_domain_root' => '',
- // 是否自动转换URL中的控制器和操作名
- 'url_convert' => true,
- // 默认的访问控制器层
- 'url_controller_layer' => 'controller',
- // 表单请求类型伪装变量
- 'var_method' => '_method',
- // 表单ajax伪装变量
- 'var_ajax' => '_ajax',
- // 表单pjax伪装变量
- 'var_pjax' => '_pjax',
- // 是否开启请求缓存 true自动缓存 支持设置请求缓存规则
- 'request_cache' => false,
- // 请求缓存有效期
- 'request_cache_expire' => null,
- // +----------------------------------------------------------------------
- // | 模板设置
- // +----------------------------------------------------------------------
- 'template' => [
- // 模板引擎类型 支持 php think 支持扩展
- 'type' => 'Think',
- // 模板路径
- 'view_path' => '',
- // 模板后缀
- 'view_suffix' => 'html',
- // 模板文件名分隔符
- 'view_depr' => DS,
- // 模板引擎普通标签开始标记
- 'tpl_begin' => '{',
- // 模板引擎普通标签结束标记
- 'tpl_end' => '}',
- // 标签库标签开始标记
- 'taglib_begin' => '{',
- // 标签库标签结束标记
- 'taglib_end' => '}',
- 'tpl_cache' => true,
- ],
- // 视图输出字符串内容替换,留空则会自动进行计算
- 'view_replace_str' => [
- '__PUBLIC__' => '',
- '__ROOT__' => '',
- '__CDN__' => '',
- ],
- // 默认跳转页面对应的模板文件
- 'dispatch_success_tmpl' => APP_PATH . 'common' . DS . 'view' . DS . 'tpl' . DS . 'dispatch_jump.tpl',
- 'dispatch_error_tmpl' => APP_PATH . 'common' . DS . 'view' . DS . 'tpl' . DS . 'dispatch_jump.tpl',
- // +----------------------------------------------------------------------
- // | 异常及错误设置
- // +----------------------------------------------------------------------
- // 异常页面的模板文件
- 'exception_tmpl' => APP_PATH . 'common' . DS . 'view' . DS . 'tpl' . DS . 'think_exception.tpl',
- // 错误显示信息,非调试模式有效
- 'error_message' => '你所浏览的页面暂时无法访问',
- // 显示错误信息
- 'show_error_msg' => false,
- // 异常处理handle类 留空使用 \think\exception\Handle
- 'exception_handle' => '',
- // +----------------------------------------------------------------------
- // | 日志设置
- // +----------------------------------------------------------------------
- 'log' => [
- // 日志记录方式,内置 file socket 支持扩展
- 'type' => 'File',
- // 日志保存目录
- 'path' => LOG_PATH,
- // 日志记录级别
- 'level' => [],
- ],
- // +----------------------------------------------------------------------
- // | Trace设置 开启 app_trace 后 有效
- // +----------------------------------------------------------------------
- 'trace' => [
- // 内置Html Console 支持扩展
- 'type' => 'Html',
- ],
- // +----------------------------------------------------------------------
- // | 缓存设置
- // +----------------------------------------------------------------------
- 'cache' => [
- // 驱动方式
- 'type' => 'File',
- // 缓存保存目录
- 'path' => CACHE_PATH,
- // 缓存前缀
- 'prefix' => '',
- // 缓存有效期 0表示永久缓存
- 'expire' => 0,
- ],
- // +----------------------------------------------------------------------
- // | 会话设置
- // +----------------------------------------------------------------------
- 'session' => [
- 'id' => '',
- // SESSION_ID的提交变量,解决flash上传跨域
- 'var_session_id' => '',
- // SESSION 前缀
- 'prefix' => 'think',
- // 驱动方式 支持redis memcache memcached
- 'type' => '',
- // 是否自动开启 SESSION
- 'auto_start' => true,
- ],
- // +----------------------------------------------------------------------
- // | Cookie设置
- // +----------------------------------------------------------------------
- 'cookie' => [
- // cookie 名称前缀
- 'prefix' => '',
- // cookie 保存时间
- 'expire' => 0,
- // cookie 保存路径
- 'path' => '/',
- // cookie 有效域名
- 'domain' => '',
- // cookie 启用安全传输
- 'secure' => false,
- // httponly设置
- 'httponly' => '',
- // 是否使用 setcookie
- 'setcookie' => true,
- ],
- //分页配置
- 'paginate' => [
- 'type' => 'bootstrap',
- 'var_page' => 'page',
- 'list_rows' => 15,
- ],
- //验证码配置
- 'captcha' => [
- // 验证码字符集合
- 'codeSet' => '2345678abcdefhijkmnpqrstuvwxyzABCDEFGHJKLMNPQRTUVWXY',
- // 验证码字体大小(px)
- 'fontSize' => 18,
- // 是否画混淆曲线
- 'useCurve' => false,
- //使用中文验证码
- 'useZh' => false,
- // 验证码图片高度
- 'imageH' => 40,
- // 验证码图片宽度
- 'imageW' => 130,
- // 验证码位数
- 'length' => 4,
- // 验证成功后是否重置
- 'reset' => true
- ],
- // +----------------------------------------------------------------------
- // | Token设置
- // +----------------------------------------------------------------------
- 'token' => [
- // 驱动方式
- 'type' => 'Redis',
- // 缓存前缀
- 'key' => 'i3d6o32wo8fvs1fvdpwens',
- // 加密方式
- 'hashalgo' => 'ripemd160',
- // 缓存有效期 0表示永久缓存
- 'expire' => 0,
- ],
- //FastAdmin配置
- 'fastadmin' => [
- //是否开启前台会员中心
- 'usercenter' => true,
- //会员注册验证码类型email/mobile/wechat/text/false
- 'user_register_captcha' => 'text',
- //登录验证码
- 'login_captcha' => true,
- //登录失败超过10次则1天后重试
- 'login_failure_retry' => true,
- //是否同一账号同一时间只能在一个地方登录
- 'login_unique' => false,
- //是否开启IP变动检测
- 'loginip_check' => true,
- //登录页默认背景图
- 'login_background' => "",
- //是否启用多级菜单导航
- 'multiplenav' => false,
- //是否开启多选项卡(仅在开启多级菜单时起作用)
- 'multipletab' => true,
- //后台皮肤,为空时表示使用skin-black-green
- 'adminskin' => '',
- //后台是否启用面包屑
- 'breadcrumb' => false,
- //是否允许未知来源的插件压缩包
- 'unknownsources' => false,
- //插件启用禁用时是否备份对应的全局文件
- 'backup_global_files' => true,
- //是否开启后台自动日志记录
- 'auto_record_log' => true,
- //插件纯净模式,插件启用后是否删除插件目录的application、public和assets文件夹
- 'addon_pure_mode' => true,
- //允许跨域的域名,多个以,分隔
- 'cors_request_domain' => 'localhost,127.0.0.1,*',
- //版本号
- 'version' => '1.2.0.20201008_beta',
- //API接口地址
- 'api_url' => 'https://api.fastadmin.net',
- ],
- 'redis' => [
- // 主机
- 'host' => '127.0.0.1',
- // 端口
- 'port' => 6379,
- 'redis_pwd' => '',
- 'redis_selectdb' => 8,
- ],
- 'cos' => [
- // 链接
- "url" => 'https://ggyuyin-1318896504.cos.ap-guangzhou.myqcloud.com',
- // 固定密钥
- 'secretId' => 'AKID0reGiz41nMsDRSK1Vmy9ABxa6QWaUDiz',
- // 固定密钥
- 'secretKey' => '72mMkz4xfDcqtlZHupqkU1PjuujQ0Rhp',
- // 存储桶
- 'bucket' => 'ggyuyin-1318896504',
- // bucket 所在园区
- 'region' => 'ap-guangzhou',
- // 密钥有效期
- 'durationSeconds' => 1800,
- // 允许的路径前缀,可以根据自己网站的用户登录态判断允许上传的具体路径,例子: a.jpg 或者 a/* 或者 * (使用通配符*存在重大安全风险, 请谨慎评估使用)
- 'allowPrefix' => '*',
- ],
- // 客户音聊,微信三方登录
- 'wxMiniProgram' => [
- 'appid' => 'wxc36febe4553c482c',
- 'secret' => '35dfe74bdec9ceced7aa494f9f45c844',
- ],
- 'imgurl' => ["image","icon_image","avatar","back_image","skill_icon","file_image","gif_image","party_logo","special","gift_gif","gift_image","music","android_image"],
- 'tcp' => "",
- // 运营商一键登录
- 'onLogin' => [
- //
- 'secretid' => '14a36938de908d93e1c799f09f9a8943',
- //
- 'secretkey' => 'd88ef04221427693a16f0f9fcd270c05',
- //
- 'businessid' => '6af7aba2b8844b83970b37c9de2b9f82',
- ],
- // 二要素实名认证 --生产
- //作废,没用到
- 'auth' => [
- // 请求地址
- 'api_url' => 'http://api3.amicloud.cn:8892/v2.0/realname/20210302116',
- // 商户号
- 'customer_code' => '',
- // 私钥
- 'private_key' => '',
- // 3des 加密key
- 'key' => '',
- ],
- // 苹果内购验证请求地址
- // "applebuy_url" => "https://sandbox.itunes.apple.com/verifyReceipt", // 测试
- "applebuy_url" => "https://buy.itunes.apple.com/verifyReceipt", // 线上
- // 聚合支付配置
- //完全没用到
- 'kjPay' => [
- 'merchant_no' => '',
- 'key' => '',
- 'url' => 'api.kj-pay.com',
- 'pay_params' => ["app_wechat"=>"app_pay","app_alipay"=>"wap_pay","miniapp"=>"mini_pay","public"=>"public_pay"],
- // 提现接口配置
- 'cashOutForSelf' => [
- 'url' => 'http://api.kj-pay.com/withdraw/pay',
- 'check_url' => 'http://api.kj-pay.com/withdraw/pay_query',
- ],
- 'receivers_member_id' => '',// 分账接收方用户标识
- ],
- 'tencent_im' => [
- 'sdkappid' => '1400818730',
- 'identifier' => 'administrator',
- 'key' => 'f31aa80a36cef72829fbcdcb10aa2aadcea2944787f2b268d46021e67711326b',
- 'SecretId' => 'AKIDISQCk4FCuSN9j8LL9k7GH6oLgpkAOQDm',
- 'SecretKey' => 'PaZKq8D4vgOtFSYUEoESVLwJVu78wXxA',
- ],
- //阿里实名认证二要素
- //阿里银行卡三要素
- 'ali_yun' => [
- 'app_key' => '203989188',
- 'app_secret' => '4yku6nam6YK0TGdlEemkmMbBR4catDVU',
- 'app_code' => '3f4fc2408a0143509e5be5c20eb97c5b',
- ],
- 'pay_test' => 0,//支付测试:0=正常,1=支付0.01
- //app接口加密
- 'app_rsa' => [
- 'private_key' => 'MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCc/+KR4S8uyFG/uexFNSkybdxlw/2dW18WvJ+FFoXycz6DIJ/b/47PvqbYUaONieRWuyosDealwCqHfy0mIBFh+tzWDK7tTT/78iYoJvj/zvTey7/KIdAA6OvS7M+bCgJTrpW3P1a4a0peXhAMui7o9Hn8sHSIBDse34pl06PKSrX+oS9sQYAT8M4GfVMg9MbLkYLnFoqRV1jQMUf7y/ctrj4xlPuSx3O39X4IysRVZSUuD4Jnc5b9rJ0Q2mbESe2sPCf05hopNRQJIaleTozYwNzo4NlNqokzlq61luwTrwVZwb/HBjW/4FQeuB/jEV8SAr7Kn+DNH4AJP68uRlUHAgMBAAECggEAGFu7E1cUsvVxeYWnGrW8xo40+7UEzD0465YoScXM0mj+8elF5CQqTCEQUc+YyIT0YGB5kow1lNHTx2H750ZibAk36h3dpgOuQbC4KtKhH09Evqxt/TZxxzJcJEWJkExlQAZ+RAgXtFUxHKMLam4YiRwlMQdPjSra4VddaZ8EcoYV+8v9mckmPA57DccF/FyGMgUCDwTbScvnRnd1ZGnqChiH7xgLRfLg8uskt87iHfidfplfeeDq0pZ39PTd2hse3Vm06avsRePXdPvwUOsssN3hHG6TBc1/BPxjqfqCGBNCrmYe5rfaJ28O9wWgQe33sOaBR3rKQmUV67yKgFBYgQKBgQDpFYtq2rXUm/8NjU0rL8+bMqss/e1IBR9/F6KXoNJA8orr8n4AccMsltfK7sia8c9ZM5PSBCZt5p/dBW9O8Stip5V4dG/cooQHSu8oq+RhNBi26vfJdsdzRLMyZ4w8Yk9Hh4puEF9X3nZzgzMzDIAc6l+V/6hx60tgz7gKAFcMDwKBgQCsb2FDhEiZAjLU6R+Ljsp3+H3mOY21Y41s5YFMWv4uk7JGkuEkq9bJGShiQmcF0UnGj1u2WTh/aMrSsKjbbPoP8OXfjiMbcO+OO5gVn2TK3JX4nXCg80YPoHOu5sLhLRwymcyi9rvKw5LOICMOFUCmsKVR7rdWyHd2atCaLkQPiQKBgQC4BZiDDpYMe/UMoAjTFfZU09YtuXVDLThGwURPbltRh6yCyHsOosKzS4yn3YpoOo24IW6Nm1Uz46dHeuj8bJASXbk21scSbQTMNS9I7x1qWRVCJZTobGzf5teL7hDcA8oP8UUrzKVZ3Husi2M65J2pNqms5aH5/wkOMDFfRBF1pQKBgHiDQ1v3mPFvCu2onEZiHnkob3023iZWlGH2KJ6fvaP5z4/pWXbSrkNP1NyPggcb1U7zpGpWAtlw+Me1dd4dVMtNVqseYMTt8k7asZjzFHN/JUVja3Lhcya6wf8MAklzyJBI0y9V97tnYjOzXCych9m3/WK8zt/VLUDSuEX5bdHZAoGAG5h0cPhVaPCOon41M+LMiPD5a541MTK5YJnEXwsMSHP0xpwqW3JUUqE6iBnvuQiJ4g7WX2YvtdJbps1auWo46icvF5kZ/3i3oVfY/ZyouF3K71rz+/KOO2NDGCY9IWCHNvIoS60g88FFmKGaXuTPik92HdfEzJ4/AqdEw2EIVBw=',
- ],
- ];
|