From e0e31f10df5d475e7d8df2472d14e25cafad1e57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=8A=80=E6=9C=AF=E8=80=81=E8=83=A1?= <1094551889@qq.com> Date: Sat, 19 Oct 2024 01:54:16 +0000 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/app.php | 32 -------------- config/cache.php | 29 ------------- config/console.php | 9 ---- config/cookie.php | 20 --------- config/database.php | 63 ---------------------------- config/extendconfig/menu.php | 72 -------------------------------- config/extendconfig/platform.php | 13 ------ config/filesystem.php | 24 ----------- config/lang.php | 27 ------------ config/log.php | 45 -------------------- config/middleware.php | 8 ---- config/payconfig/1001_1.php | 35 ---------------- config/route.php | 45 -------------------- config/session.php | 19 --------- config/trace.php | 10 ----- config/view.php | 25 ----------- 16 files changed, 476 deletions(-) delete mode 100644 config/app.php delete mode 100644 config/cache.php delete mode 100644 config/console.php delete mode 100644 config/cookie.php delete mode 100644 config/database.php delete mode 100644 config/extendconfig/menu.php delete mode 100644 config/extendconfig/platform.php delete mode 100644 config/filesystem.php delete mode 100644 config/lang.php delete mode 100644 config/log.php delete mode 100644 config/middleware.php delete mode 100644 config/payconfig/1001_1.php delete mode 100644 config/route.php delete mode 100644 config/session.php delete mode 100644 config/trace.php delete mode 100644 config/view.php diff --git a/config/app.php b/config/app.php deleted file mode 100644 index 8cb245c..0000000 --- a/config/app.php +++ /dev/null @@ -1,32 +0,0 @@ - env('APP_HOST', ''), - // 应用的命名空间 - 'app_namespace' => '', - // 是否启用路由 - 'with_route' => true, - // 默认应用 - 'default_app' => 'index', - // 默认时区 - 'default_timezone' => 'Asia/Shanghai', - - // 应用映射(自动多应用模式有效) - 'app_map' => [], - // 域名绑定(自动多应用模式有效) - 'domain_bind' => [], - // 禁止URL访问的应用列表(自动多应用模式有效) - 'deny_app_list' => [], - - // 异常页面的模板文件 - 'exception_tmpl' => app()->getThinkPath() . 'tpl/think_exception.tpl', - - // 错误显示信息,非调试模式有效 - 'error_message' => '页面错误!请稍后再试~', - // 显示错误信息 - 'show_error_msg' => false, -]; diff --git a/config/cache.php b/config/cache.php deleted file mode 100644 index 6b72dc8..0000000 --- a/config/cache.php +++ /dev/null @@ -1,29 +0,0 @@ - 'file', - - // 缓存连接方式配置 - 'stores' => [ - 'file' => [ - // 驱动方式 - 'type' => 'File', - // 缓存保存目录 - 'path' => '', - // 缓存前缀 - 'prefix' => '', - // 缓存有效期 0表示永久缓存 - 'expire' => 0, - // 缓存标签前缀 - 'tag_prefix' => 'tag:', - // 序列化机制 例如 ['serialize', 'unserialize'] - 'serialize' => [], - ], - // 更多的缓存连接 - ], -]; diff --git a/config/console.php b/config/console.php deleted file mode 100644 index a818a98..0000000 --- a/config/console.php +++ /dev/null @@ -1,9 +0,0 @@ - [ - ], -]; diff --git a/config/cookie.php b/config/cookie.php deleted file mode 100644 index d3b3aab..0000000 --- a/config/cookie.php +++ /dev/null @@ -1,20 +0,0 @@ - 0, - // cookie 保存路径 - 'path' => '/', - // cookie 有效域名 - 'domain' => '', - // cookie 启用安全传输 - 'secure' => false, - // httponly设置 - 'httponly' => false, - // 是否使用 setcookie - 'setcookie' => true, - // samesite 设置,支持 'strict' 'lax' - 'samesite' => '', -]; diff --git a/config/database.php b/config/database.php deleted file mode 100644 index bd5ab81..0000000 --- a/config/database.php +++ /dev/null @@ -1,63 +0,0 @@ - env('DB_DRIVER', 'mysql'), - - // 自定义时间查询规则 - 'time_query_rule' => [], - - // 自动写入时间戳字段 - // true为自动识别类型 false关闭 - // 字符串则明确指定时间字段类型 支持 int timestamp datetime date - 'auto_timestamp' => true, - - // 时间字段取出后的默认时间格式 - 'datetime_format' => 'Y-m-d H:i:s', - - // 时间字段配置 配置格式:create_time,update_time - 'datetime_field' => '', - - // 数据库连接配置信息 - 'connections' => [ - 'mysql' => [ - // 数据库类型 - 'type' => env('DB_TYPE', 'mysql'), - // 服务器地址 - 'hostname' => env('DB_HOST', '127.0.0.1'), - // 数据库名 - 'database' => env('DB_NAME', ''), - // 用户名 - 'username' => env('DB_USER', 'root'), - // 密码 - 'password' => env('DB_PASS', ''), - // 端口 - 'hostport' => env('DB_PORT', '3306'), - // 数据库连接参数 - 'params' => [], - // 数据库编码默认采用utf8 - 'charset' => env('DB_CHARSET', 'utf8'), - // 数据库表前缀 - 'prefix' => env('DB_PREFIX', ''), - - // 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器) - 'deploy' => 0, - // 数据库读写是否分离 主从式有效 - 'rw_separate' => false, - // 读写分离后 主服务器数量 - 'master_num' => 1, - // 指定从服务器序号 - 'slave_no' => '', - // 是否严格检查字段是否存在 - 'fields_strict' => true, - // 是否需要断线重连 - 'break_reconnect' => false, - // 监听SQL - 'trigger_sql' => env('APP_DEBUG', true), - // 开启字段缓存 - 'fields_cache' => false, - ], - - // 更多的数据库配置信息 - ], -]; diff --git a/config/extendconfig/menu.php b/config/extendconfig/menu.php deleted file mode 100644 index 9206f33..0000000 --- a/config/extendconfig/menu.php +++ /dev/null @@ -1,72 +0,0 @@ - 'console', - 'title' => '平台首页', - 'icon' => 'layui-icon layui-icon-console', - 'type' => 1, - 'openType' => '_iframe', - 'href' => 'Console/console', - ], - [ - 'id' => 'order', - 'title' => '订单管理', - 'icon' => 'layui-icon layui-icon-console', - 'type' => 1, - 'openType' => '_iframe', - 'href' => '/Order/index', - ], - [ - 'id' => 'payManage', - 'title' => '支付管理', - 'icon' => 'layui-icon layui-icon-console', - 'type' => 1, - 'openType' => '_iframe', - 'href' => '/PayManage/index', - ], - [ - 'id' => 'pluginManage', - 'title' => '插件管理', - 'icon' => 'layui-icon layui-icon-console', - 'type' => 1, - 'openType' => '_iframe', - 'href' => '/Plugin/index', - ], - [ - 'id' => 'userCenter', - 'title' => '用户中心', - 'icon' => 'layui-icon layui-icon-console', - 'type' => 1, - 'openType' => '_iframe', - 'href' => '/User/index', - ], - // [ - // 'id' => 'system', - // 'title' => '系统设置', - // 'icon' => 'layui-icon layui-icon-console', - // 'type' => 1, - // 'openType' => '_iframe', - // 'href' => '/System/index', - // ], - // [ - // 'id' => 'pay', - // 'title' => '支付管理', - // 'icon' => 'layui-icon layui-icon-console', - // 'type' => 0, - // 'href' => '', - // 'children' => [ - // [ - // 'id' => 'pay_qrcode_list', - // 'title' => '收款账户', - // 'icon' => 'layui-icon layui-icon-console', - // 'type' => 1, - // 'openType' => '_iframe', - // 'href' => '/PayQrcode/index', - // ], - // ], - // ], -]; diff --git a/config/extendconfig/platform.php b/config/extendconfig/platform.php deleted file mode 100644 index 096c668..0000000 --- a/config/extendconfig/platform.php +++ /dev/null @@ -1,13 +0,0 @@ - '收钱吧', - 'storepay' => '数字门店', - 'ysepay' => '小Y经营', - 'mqpay' => '码钱', - 'lklpay' => '拉卡拉', - 'sftpay' => '盛付通', -); diff --git a/config/filesystem.php b/config/filesystem.php deleted file mode 100644 index 582a8f8..0000000 --- a/config/filesystem.php +++ /dev/null @@ -1,24 +0,0 @@ - 'local', - // 磁盘列表 - 'disks' => [ - 'local' => [ - 'type' => 'local', - 'root' => app()->getRuntimePath() . 'storage', - ], - 'public' => [ - // 磁盘类型 - 'type' => 'local', - // 磁盘路径 - 'root' => app()->getRootPath() . 'public/storage', - // 磁盘路径对应的外部URL路径 - 'url' => '/storage', - // 可见性 - 'visibility' => 'public', - ], - // 更多的磁盘配置信息 - ], -]; diff --git a/config/lang.php b/config/lang.php deleted file mode 100644 index 0d8b693..0000000 --- a/config/lang.php +++ /dev/null @@ -1,27 +0,0 @@ - env('DEFAULT_LANG', 'zh-cn'), - // 允许的语言列表 - 'allow_lang_list' => [], - // 多语言自动侦测变量名 - 'detect_var' => 'lang', - // 是否使用Cookie记录 - 'use_cookie' => true, - // 多语言cookie变量 - 'cookie_var' => 'think_lang', - // 多语言header变量 - 'header_var' => 'think-lang', - // 扩展语言包 - 'extend_list' => [], - // Accept-Language转义为对应语言包名称 - 'accept_language' => [ - 'zh-hans-cn' => 'zh-cn', - ], - // 是否支持语言分组 - 'allow_group' => false, -]; diff --git a/config/log.php b/config/log.php deleted file mode 100644 index 0d406f8..0000000 --- a/config/log.php +++ /dev/null @@ -1,45 +0,0 @@ - 'file', - // 日志记录级别 - 'level' => [], - // 日志类型记录的通道 ['error'=>'email',...] - 'type_channel' => [], - // 关闭全局日志写入 - 'close' => false, - // 全局日志处理 支持闭包 - 'processor' => null, - - // 日志通道列表 - 'channels' => [ - 'file' => [ - // 日志记录方式 - 'type' => 'File', - // 日志保存目录 - 'path' => '', - // 单文件日志写入 - 'single' => false, - // 独立日志级别 - 'apart_level' => [], - // 最大日志文件数量 - 'max_files' => 0, - // 使用JSON格式记录 - 'json' => false, - // 日志处理 - 'processor' => null, - // 关闭通道日志写入 - 'close' => false, - // 日志输出格式化 - 'format' => '[%s][%s] %s', - // 是否实时写入 - 'realtime_write' => false, - ], - // 其它日志通道配置 - ], - -]; diff --git a/config/middleware.php b/config/middleware.php deleted file mode 100644 index dbc7e54..0000000 --- a/config/middleware.php +++ /dev/null @@ -1,8 +0,0 @@ - ['Auth' => \app\middleware\Auth::class,], - // 优先级设置,此数组中的中间件会按照数组中的顺序优先执行 - 'priority' => [], -]; diff --git a/config/payconfig/1001_1.php b/config/payconfig/1001_1.php deleted file mode 100644 index e755841..0000000 --- a/config/payconfig/1001_1.php +++ /dev/null @@ -1,35 +0,0 @@ - [ - 'pid' => 1001, - 'key' => '953c4d682d9ab148277b76a06e215ce7' - ], - // 收款平台账号配置 - 'pay' => [ - // 账号id - 'aid' => 1, - // 收款平台 - 'platform' => 'sqbpay', - // 收款平台 - 'payclass' => 'ShouQianBa', - // 账号 - 'account' => '188******23', - // 密码 - 'password' => '7*******B', - // 订单查询参数配置 - 'query' => array ( - 'date_end' => NULL, - 'date_start' => NULL, - 'page' => 1, - 'page_size' => 10, - 'upayQueryType' => 0, - 'status' => '2000', - 'store_sn' => '', - 'type' => '30', -), - ] -]; diff --git a/config/route.php b/config/route.php deleted file mode 100644 index b317ed5..0000000 --- a/config/route.php +++ /dev/null @@ -1,45 +0,0 @@ - '/', - // URL伪静态后缀 - 'url_html_suffix' => 'html', - // URL普通方式参数 用于自动生成 - 'url_common_param' => true, - // 是否开启路由延迟解析 - 'url_lazy_route' => false, - // 是否强制使用路由 - 'url_route_must' => false, - // 合并路由规则 - 'route_rule_merge' => false, - // 路由是否完全匹配 - 'route_complete_match' => false, - // 访问控制器层名称 - 'controller_layer' => 'controller', - // 空控制器名 - 'empty_controller' => 'Error', - // 是否使用控制器后缀 - 'controller_suffix' => true, - // 默认的路由变量规则 - 'default_route_pattern' => '[\w\.]+', - // 是否开启请求缓存 true自动缓存 支持设置请求缓存规则 - 'request_cache_key' => false, - // 请求缓存有效期 - 'request_cache_expire' => null, - // 全局请求缓存排除规则 - 'request_cache_except' => [], - // 默认控制器名 - 'default_controller' => 'Index', - // 默认操作名 - 'default_action' => 'index', - // 操作方法后缀 - 'action_suffix' => '', - // 默认JSONP格式返回的处理方法 - 'default_jsonp_handler' => 'jsonpReturn', - // 默认JSONP处理方法 - 'var_jsonp_handler' => 'callback', -]; diff --git a/config/session.php b/config/session.php deleted file mode 100644 index 96c63be..0000000 --- a/config/session.php +++ /dev/null @@ -1,19 +0,0 @@ - 'PHPSESSID', - // SESSION_ID的提交变量,解决flash上传跨域 - 'var_session_id' => '', - // 驱动方式 支持file cache - 'type' => 'file', - // 存储连接标识 当type使用cache的时候有效 - 'store' => null, - // 过期时间 - 'expire' => 14400, - // 前缀 - 'prefix' => '', -]; diff --git a/config/trace.php b/config/trace.php deleted file mode 100644 index fad2392..0000000 --- a/config/trace.php +++ /dev/null @@ -1,10 +0,0 @@ - 'Html', - // 读取的日志通道名 - 'channel' => '', -]; diff --git a/config/view.php b/config/view.php deleted file mode 100644 index 622e9a1..0000000 --- a/config/view.php +++ /dev/null @@ -1,25 +0,0 @@ - 'php', - // 默认模板渲染规则 1 解析为小写+下划线 2 全部转换小写 3 保持操作方法 - 'auto_rule' => 1, - // 模板目录名 - 'view_dir_name' => 'view', - // 模板后缀 - 'view_suffix' => 'html', - // 模板文件名分隔符 - 'view_depr' => DIRECTORY_SEPARATOR, - // 模板引擎普通标签开始标记 - 'tpl_begin' => '{', - // 模板引擎普通标签结束标记 - 'tpl_end' => '}', - // 标签库标签开始标记 - 'taglib_begin' => '{', - // 标签库标签结束标记 - 'taglib_end' => '}', -];