| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301 | 
							- <?php
 
- // +----------------------------------------------------------------------
 
- // | ThinkPHP [ WE CAN DO IT JUST THINK ]
 
- // +----------------------------------------------------------------------
 
- // | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
 
- // +----------------------------------------------------------------------
 
- // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
 
- // +----------------------------------------------------------------------
 
- // | Author: liu21st <liu21st@gmail.com>
 
- // +----------------------------------------------------------------------
 
- // +----------------------------------------------------------------------
 
- // | 应用设置
 
- // +----------------------------------------------------------------------
 
- return [
 
-     // 应用名称
 
-     'app_name'               => '',
 
-     // 应用地址
 
- //    'app_host'               => \think\facade\Env::get('app.app_host',''),
 
-     'app_host'               => request()->domain(),
 
-     // 应用调试模式
 
-     'app_debug'              => \think\facade\Env::get('app.app_debug',false),
 
-     // 应用Trace
 
-     'app_trace'              => false,
 
-     // 是否支持多模块
 
-     'app_multi_module'       => true,
 
-     // 入口自动绑定模块
 
-     'auto_bind_module'       => false,
 
-     // 注册的根命名空间
 
-     'root_namespace'         => [],
 
-     // 默认输出类型
 
-     'default_return_type'    => 'json',
 
-     // 默认AJAX 数据返回格式,可选json xml ...
 
-     'default_ajax_return'    => 'json',
 
-     // 默认JSONP格式返回的处理方法
 
-     'default_jsonp_handler'  => 'jsonpReturn',
 
-     // 默认JSONP处理方法
 
-     'var_jsonp_handler'      => 'callback',
 
-     // 默认时区
 
-     'default_timezone'       => 'Asia/Shanghai',
 
-     // 是否开启多语言
 
-     'lang_switch_on'         => false,
 
-     // 默认全局过滤方法 用逗号分隔多个
 
-     //'default_filter'         => '',
 
-     'default_filter'         => 'trim,remove_xss',
 
-     // 默认语言
 
-     'default_lang'           => 'zh-cn',
 
-     // 应用类库后缀
 
-     'class_suffix'           => false,
 
-     // 控制器类后缀
 
-     'controller_suffix'      => false,
 
-     // +----------------------------------------------------------------------
 
-     // | 模块设置
 
-     // +----------------------------------------------------------------------
 
-     // 默认模块名
 
-     'default_module'         => 'admin',
 
-     // 禁止访问模块
 
-     'deny_module_list'       => ['common'],
 
-     // 默认控制器名
 
-     'default_controller'     => 'Index',
 
-     // 默认操作名
 
-     'default_action'         => 'index',
 
-     // 默认验证器
 
-     'default_validate'       => '',
 
-     // 默认的空模块名
 
-     'empty_module'           => '',
 
-     // 默认的空控制器名
 
-     'empty_controller'       => 'Error',
 
-     // 操作方法前缀
 
-     'use_action_prefix'      => false,
 
-     // 操作方法后缀
 
-     'action_suffix'          => '',
 
-     // 自动搜索控制器
 
-     'controller_auto_search' => false,
 
-     // +----------------------------------------------------------------------
 
-     // | URL设置
 
-     // +----------------------------------------------------------------------
 
-     // PATHINFO变量名 用于兼容模式
 
-     'var_pathinfo'           => 's',
 
-     // 兼容PATH_INFO获取
 
-     'pathinfo_fetch'         => ['ORIG_PATH_INFO', 'REDIRECT_PATH_INFO', 'REDIRECT_URL'],
 
-     // pathinfo分隔符
 
-     'pathinfo_depr'          => '/',
 
-     // HTTPS代理标识
 
-     'https_agent_name'       => '',
 
-     // IP代理获取标识
 
-     'http_agent_ip'          => 'X-REAL-IP',
 
-     // URL伪静态后缀
 
-     'url_html_suffix'        => 'html',
 
-     // URL普通方式参数 用于自动生成
 
-     'url_common_param'       => false,
 
-     // URL参数方式 0 按名称成对解析 1 按顺序解析
 
-     'url_param_type'         => 0,
 
-     // 是否开启路由延迟解析
 
-     'url_lazy_route'         => false,
 
-     // 是否强制使用路由
 
-     'url_route_must'         => false,
 
-     // 合并路由规则
 
-     'route_rule_merge'       => false,
 
-     // 路由是否完全匹配
 
-     'route_complete_match'   => false,
 
-     // 使用注解路由
 
-     'route_annotation'       => 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,
 
-     // 全局请求缓存排除规则
 
-     'request_cache_except'   => [],
 
-     // 是否开启路由缓存
 
-     'route_check_cache'      => false,
 
-     // 路由缓存的Key自定义设置(闭包),默认为当前URL和请求类型的md5
 
-     'route_check_cache_key'  => '',
 
-     // 路由缓存类型及参数
 
-     'route_cache_option'     => [],
 
-     // 默认跳转页面对应的模板文件
 
-     'dispatch_success_tmpl'  => Env::get('think_path') . 'tpl/dispatch_jump.tpl',
 
-     'dispatch_error_tmpl'    => Env::get('think_path') . 'tpl/dispatch_jump.tpl',
 
-     // 异常页面的模板文件
 
-     'exception_tmpl'         => Env::get('root_path') . 'think_exception.tpl',
 
-     // 错误显示信息,非调试模式有效
 
-     'error_message'          => '页面错误!请稍后再试~',
 
-     // 显示错误信息
 
-     'show_error_msg'         => false,
 
-     // 异常处理handle类 留空使用 \think\exception\Handle
 
-     'exception_handle'       =>  '',
 
-     // 上传文件最大限制
 
-     'max_upload_file_size' => 200*1024*1024,
 
-     // 上传文件限制
 
-     'max_upload_img' => [
 
-         'size' => 5*1024*1024,
 
-         'ext' => 'jpg,png,jpeg'
 
-     ],
 
-     //短信配置
 
-     'sms_config' => [
 
-         'qx_corpid' => '',
 
-         'qx_pwd' => '',
 
-         'name' => '肿瘤医院' // 短信签名
 
-     ],
 
-     // 加密key
 
-     'encryption_key' => 'J2Y0A2T1E0C0HBLF',
 
-     'gdsecret' => 'a27c4e21f8a7a5a2b156fc038619d832', // 高德地图安全秘钥
 
-     'gdkey' => '52964365fc232ea5647f06a72fb876be', // 高德地图key
 
-     'max_send_sms' => 5, // 每个手机号每天发送手机号的数量
 
-     'jpush' => [ // 极光推送
 
-         'appkey' => 'c64ab0dc30aed289a0a291af',
 
-         'mastersecret' => '9c5b322221ad8fcd2b2e4b26'
 
-     ],
 
-     'ucode' => 'hbzyy',  //二维码标识 //正式使用后不可修改
 
-     'visit_url' => '/wap/visitor/#/pages/index/add?orgId=', // 访客端
 
-     'shop_url' => config("app.app_host").'/wap/shop', // 点餐端
 
-     'ph_url' => '/wap/ph', // 陪护端
 
-     'screen_url' => config("app.app_host").'/wap/screen/#', // 大屏端
 
-     'xshop_url' => 'http://******/xshop', // 商城端
 
-     'machine_admin' => [ // 极光推送
 
-         'id' => '999999999',
 
-         'name' => '超级管理员',
 
-         'card' => '9999999999'
 
-     ],
 
-     'hwsms' => [ // 华为短信配置
 
-         'account' => '',
 
-         'password' => '',
 
-         'sign' => '',
 
-         'ip' => '139.9.32.119',
 
-         'port' => 18312,
 
-         'templateId' => 'SMS_21113000020'
 
-     ],
 
-     'reissue_count' => 5,
 
-     'reissue_day' => 31,
 
-     //------微信小程序配置---------
 
-     'wx_mini_config' => [
 
-         'app_id' => 'wx5e9b589db64ca5b2',
 
-         'secret' => '16f6156c87d628a255df26acac9a202c',
 
-         // 下面为可选项
 
-         // 指定 API 调用返回结果的类型:array(default)/collection/object/raw/自定义类名
 
-         'response_type' => 'array',
 
-         'log' => [
 
-             'level' => 'error',
 
-             'file' =>  env('runtime_path').'/log/wechat.log',
 
-         ],
 
-     ],
 
-     //------微信公众号配置---------
 
-   /*  'wx_config' => [
 
-         'app_id' => 'wx2f0195c58ad8c3ec',
 
-         'secret' => '29452e7ad4db9fb53ddc1a8ab66eca2a',
 
-         'mch_id' => '', // 商户号
 
-         'key' => '',   // API 密钥
 
-         // 如需使用敏感接口(如退款、发送红包等)需要配置 API 证书路径(登录商户平台下载 API 证书)
 
-         'cert_path' => env('root_path').'public/certs/apiclient_cert.pem',
 
-         'key_path' => env('root_path').'public/certs/apiclient_key.pem',
 
-         // 下面为可选项
 
-         // 指定 API 调用返回结果的类型:array(default)/collection/object/raw/自定义类名
 
-         'response_type' => 'array',
 
-         'log' => [
 
-             'level' => 'error',
 
-             'file' => env('runtime_path').'/log/wechat.log',
 
-         ],
 
-     ],*/
 
-     'wx_config' => [
 
-         'app_id' => 'wx98c5fd5111be3125',
 
-         'secret' => '0f6b3f1eb5198b0e89cff977d67c3740',
 
-         'mch_id' => '', // 商户号
 
-         'key' => '',   // API 密钥
 
-         // 如需使用敏感接口(如退款、发送红包等)需要配置 API 证书路径(登录商户平台下载 API 证书)
 
-         'cert_path' => env('root_path').'public/certs/apiclient_cert.pem',
 
-         'key_path' => env('root_path').'public/certs/apiclient_key.pem',
 
-         // 下面为可选项
 
-         // 指定 API 调用返回结果的类型:array(default)/collection/object/raw/自定义类名
 
-         'response_type' => 'array',
 
-         'log' => [
 
-             'level' => 'error',
 
-             'file' => env('runtime_path').'/log/wechat.log',
 
-         ],
 
-     ],
 
-     'weather_key'=>'125cc579816bceb875b413794c2b13d4',//获取聚合天气接口的key
 
-     //-----登录限流配置--------
 
-     'login_throttles' => [
 
-         'enabled' => true, // 是否开启限流 true=开启 false=不开启
 
-         'time' => 1*60, // 间隔时间(s)
 
-         'attempts' => 5, // 最大登录次数
 
-         'lock' => 30*60 // 锁定时间(s)
 
-     ],
 
-     'addr_url' => 'https://mdyg.sdmingde.cn/h5/repair/index?code=',
 
-     // 上传excel文件
 
-     'max_upload_excel' => [
 
-         'size' => 30*1024*1024,
 
-         'ext' => 'xls,xlsx',
 
- //        'type' => implode(',',[
 
- //            'application/vnd.ms-excel',
 
- //            'application/msexcel',
 
- //            'application/x-msexcel',
 
- //            'application/x-ms-excel',
 
- //            'application/x-excel',
 
- //            'application/x-dos_ms_excel',
 
- //            'application/xls',
 
- //            'application/x-xls',
 
- //            'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
 
- //            'application/zip'
 
- //        ])
 
-     ],
 
-     'security_app' => [ // 安全保卫报警按钮配置
 
-         'id' => '',
 
-         'secret' => ''
 
-     ],
 
- ];
 
 
  |