first commit

This commit is contained in:
2026-07-23 09:40:36 +08:00
commit 090abf48fa
989 changed files with 145728 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
<?php
// +----------------------------------------------------------------------
// | 阿里云短信配置
// +----------------------------------------------------------------------
return [
'access_key_id' => 'xxxxxxxxxxxxxxxxxxxxxxx',
'access_key_secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'sign_name' => 'xxxxxxxxxxxxx', // 短信签名
'region_id' => 'cn-hangzhou', // 固定值,除非特殊要求
];
+65
View File
@@ -0,0 +1,65 @@
<?php
// +----------------------------------------------------------------------
// | 应用设置
// +----------------------------------------------------------------------
return [
// 应用地址
'app_host' => env('app.host', ''),
// 应用的命名空间
'app_namespace' => '',
// 是否启用路由
'with_route' => true,
// 默认应用
'default_app' => 'home',
// 默认时区
'default_timezone' => 'Asia/Shanghai',
//授权域名
'auth_host' => 'oa.a.gougucms.com',
//授权key
'auth_key' => 'YcXACHWh0s',
//授权码
'auth_code' => 'o8aH.naS.4g8o7uwgkuKclmGsO.5c6oWmiY5cIXjAMCFHoW5ha0lslmkoabii9lteNERxeXYrUDByeFhBeFE9PQ==',
// 应用映射(自动多应用模式有效)
'app_map' => [],
// 域名绑定(自动多应用模式有效)
'domain_bind' => [],
// 禁止URL访问的应用列表(自动多应用模式有效)
'deny_app_list' => [],
// 默认全局过滤方法 用逗号分隔多个
'default_filter' => 'htmlspecialchars',
// 异常页面的模板文件
'exception_tmpl' => app()->getRootPath() . '/public/tpl/think_exception.tpl',
// 默认跳转页面对应的模板文件【新增】
'dispatch_success_tmpl' => app()->getRootPath() . '/public/tpl/dispatch_jump.tpl',
'dispatch_error_tmpl' => app()->getRootPath() . '/public/tpl/dispatch_jump.tpl',
// 错误显示信息,非调试模式有效
'error_message' => '😔错误~',
// 显示错误信息
'show_error_msg' => false,
'page_size' => 20,//分页默认数据长度
'file_size' => 50,//附件大小50M
'session_user' => 'gougu_user',
'session_admin' => 'gougu_admin',
'http_exception_template' => [
// 登录失败
401 => public_path() . 'tpl/401.html',
// 禁止访问
403 => public_path() . 'tpl/403.html',
// 无法找到文件
404 => public_path() . 'tpl/404.html',
// 无权限访问
405 => public_path() . 'tpl/405.html',
// 找不到数据
406 => public_path() . 'tpl/406.html',
//内部服务器错误
500 => public_path() . 'tpl/500.html',
]
];
+59
View File
@@ -0,0 +1,59 @@
<?php
// +----------------------------------------------------------------------
// | 审批类型
// +----------------------------------------------------------------------
return [
// 审批类型
'type' => [
[
'id' => '1',
'title'=> '假勤',
'db_type'=>1,
'db_name'=>'',
],
[
'id' => '2',
'title'=> '行政',
'db_type'=>1,
'db_name'=>'',
],
[
'id' => '3',
'title'=> '财务',
'db_type'=>1,
'db_name'=>'',
],
[
'id' => '4',
'title'=> '人事',
'db_type'=>1,
'db_name'=>'',
],
[
'id' => '5',
'title'=> '其他',
'db_type'=>1,
'db_name'=>'',
],
[
'id' => '6',
'title'=> '报销' ,
'db_type'=>2,
'db_name'=>'',
],
[
'id' => '7',
'title'=> '发票',
'db_type'=>3,
'db_name'=>'',
],
[
'id' => '8',
'title'=> '合同',
'db_type'=>4,
'db_name'=>'',
],
],
];
+29
View File
@@ -0,0 +1,29 @@
<?php
// +----------------------------------------------------------------------
// | 缓存设置
// +----------------------------------------------------------------------
return [
// 默认缓存驱动
'default' => env('cache.driver', 'file'),
// 缓存连接方式配置
'stores' => [
'file' => [
// 驱动方式
'type' => 'File',
// 缓存保存目录
'path' => '',
// 缓存前缀
'prefix' => '',
// 缓存有效期 0表示永久缓存
'expire' => 0,
// 缓存标签前缀
'tag_prefix' => 'tag:',
// 序列化机制 例如 ['serialize', 'unserialize']
'serialize' => [],
],
// 更多的缓存连接
],
];
+39
View File
@@ -0,0 +1,39 @@
<?php
// +----------------------------------------------------------------------
// | Captcha配置文件
// +----------------------------------------------------------------------
return [
//验证码位数
'length' => 5,
// 验证码字符集合
'codeSet' => '2345678abcdefhijkmnpqrstuvwxyzABCDEFGHJKLMNPQRTUVWXY',
// 验证码过期时间
'expire' => 1800,
// 是否使用中文验证码
'useZh' => false,
// 是否使用算术验证码
'math' => true,
// 是否使用背景图
'useImgBg' => false,
//验证码字符大小
'fontSize' => 25,
// 是否使用混淆曲线
'useCurve' => true,
//是否添加杂点
'useNoise' => true,
// 验证码字体 不设置则随机
'fontttf' => '',
//背景颜色
'bg' => [243, 251, 254],
// 验证码图片高度
'imageH' => 0,
// 验证码图片宽度
'imageW' => 0,
// 添加额外的验证码设置
// verify => [
// 'length'=>4,
// ...
//],
];
+17
View File
@@ -0,0 +1,17 @@
<?php
// +----------------------------------------------------------------------
// | 控制台配置
// +----------------------------------------------------------------------
return [
// 指令定义
'commands' => [
'crud' => 'app\crud\command\Crud',
],
];
+18
View File
@@ -0,0 +1,18 @@
<?php
// +----------------------------------------------------------------------
// | Cookie设置
// +----------------------------------------------------------------------
return [
// cookie 保存时间
'expire' => 0,
// cookie 保存路径
'path' => '/',
// cookie 有效域名
'domain' => '',
// cookie 启用安全传输
'secure' => false,
// httponly设置
'httponly' => false,
// 是否使用 setcookie
'setcookie' => true,
];
+54
View File
@@ -0,0 +1,54 @@
<?php
return [
// 默认使用的数据库连接配置
'default' => 'mysql',
// 自定义时间查询规则
'time_query_rule' => [],
// 自动写入时间戳字段
// true为自动识别类型 false关闭
// 字符串则明确指定时间字段类型 支持 int timestamp datetime date
'auto_timestamp' => true,
// 时间字段取出后的默认时间格式
'datetime_format' => 'Y-m-d H:i:s',
// 数据库连接配置信息
'connections' => [
'mysql' => [
// 数据库类型
'type' => 'mysql',
// 服务器地址
'hostname' => '1Panel-mysql-jQfe',
// 数据库名
'database' => 'oa',
// 用户名
'username' => 'oa',
// 密码
'password' => 'yphMDpiXRJjm8N5b',
// 端口
'hostport' => '3306',
// 数据库表前缀
'prefix' => 'oa_',
// 数据库连接参数
'params' => [],
// 数据库编码默认采用utf8mb4
'charset' => 'utf8mb4',
// 数据库调试模式
'debug' => false,
// 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器)
'deploy' => 0,
// 数据库读写是否分离 主从式有效
'rw_separate' => false,
// 读写分离后 主服务器数量
'master_num' => 1,
// 指定从服务器序号
'slave_no' => '',
// 是否严格检查字段是否存在
'fields_strict' => true,
// 是否需要断线重连
'break_reconnect' => false,
// 监听SQL
'trigger_sql' => true,
// 开启字段缓存
'fields_cache' => false,
],
],
];
+26
View File
@@ -0,0 +1,26 @@
<?php
use think\facade\Env;
return [
// 默认磁盘
'default' => Env::get('filesystem.driver', 'local'),
// 磁盘列表
'disks' => [
'local' => [
'type' => 'local',
'root' => app()->getRuntimePath() . 'storage',
],
'public' => [
// 磁盘类型
'type' => 'local',
// 磁盘路径
'root' => app()->getRootPath() . 'public/storage',
// 磁盘路径对应的外部URL路径
'url' => '/storage',
// 可见性
'visibility' => 'public',
],
// 更多的磁盘配置信息
],
];
+27
View File
@@ -0,0 +1,27 @@
<?php
// +----------------------------------------------------------------------
// | 多语言设置
// +----------------------------------------------------------------------
return [
// 默认语言
'default_lang' => env('lang.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,
];
+82
View File
@@ -0,0 +1,82 @@
<?php
return [
[
'id' => 1,
'row' => 1,
'name' => 'count',
'title' => '模块统计',
],
[
'id' => 2,
'row' => 1,
'name' => 'event',
'title' => '待办事项',
],
[
'id' => 3,
'row' => 1,
'name' => 'note',
'title' => '企业公告',
],
[
'id' => 4,
'row' => 1,
'name' => 'project',
'title' => '项目列表',
],
[
'id' => 5,
'row' => 1,
'name' => 'task',
'title' => '任务列表',
],
[
'id' => 6,
'row' => 1,
'name' => 'chartview',
'title' => '今日员工活跃度',
],
[
'id' => 7,
'row' => 1,
'name' => 'chartyear',
'title' => '年度员工活跃度',
],
[
'id' => 8,
'row' => 2,
'name' => 'fastentry',
'title' => '快捷入口',
],
[
'id' => 9,
'row' => 2,
'name' => 'approve',
'title' => '办公审批',
],
[
'id' => 13,
'row' => 2,
'name' => 'links',
'title' => '办公工具',
],
[
'id' => 10,
'row' => 2,
'name' => 'system',
'title' => '系统信息',
],
[
'id' => 11,
'row' => 2,
'name' => 'ranking',
'title' => '活跃员工',
],
[
'id' => 12,
'row' => 2,
'name' => 'action',
'title' => '员工动态',
]
];
+91
View File
@@ -0,0 +1,91 @@
<?php
// +----------------------------------------------------------------------
// | 日志设置
// +----------------------------------------------------------------------
return [
// 默认日志记录通道
'default' => env('log.channel', '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,
],
// 其它日志通道配置
],
'type_action' => [
'login' => '登录',
'upload' => '上传',
'down' => '下载',
'bak' => '备份',
'optimize' => '优化',
'repair' => '修复',
'reduction' => '还原',
'import' => '导入',
'export' => '导出',
'add' => '新增',
'edit' => '编辑',
'view' => '查看',
'save' => '保存',
'delete' => '删除',
'send' => '发送',
'disable' => '禁用',
'close' => '关闭',
'secure' => '解除',
'recovery' => '恢复',
'set' => '设置',
'hand' => '交接',
'apply' => '申请',
'check' => '审核通过',
'refue' => '审核拒绝',
'grant' => '授予',
'back' => '撤销',
'topay' => '打款',
'open' => '开具',
'enter' => '到账',
'tovoid' => '作废',
'leave' => '离职',
'get' => '获取',
'allot' => '分配',
'remove' => '移除',
'clear' => '清除',
'star' => '星标',
'unstar' => '取消星标',
'lock' => '锁住',
'unlock' => '解锁',
'tosea' => '公海移入',
'totrash' => '废弃池移入',
'reset' => '重新设置',
'install' => '安装',
'uninstall' => '卸载',
],
];
+8
View File
@@ -0,0 +1,8 @@
<?php
// 中间件配置
return [
// 别名或分组
'alias' => [],
// 优先级设置,此数组中的中间件会按照数组中的顺序优先执行
'priority' => [],
];
+45
View File
@@ -0,0 +1,45 @@
<?php
// +----------------------------------------------------------------------
// | 路由设置
// +----------------------------------------------------------------------
return [
// pathinfo分隔符
'pathinfo_depr' => '/',
// 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' => false,
// 默认的路由变量规则
'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',
];
+19
View File
@@ -0,0 +1,19 @@
<?php
// +----------------------------------------------------------------------
// | 会话设置
// +----------------------------------------------------------------------
return [
// session name
'name' => 'PHPSESSID',
// SESSION_ID的提交变量,解决flash上传跨域
'var_session_id' => '',
// 驱动方式 支持file cache
'type' => 'file',
// 存储连接标识 当type使用cache的时候有效
'store' => null,
// 过期时间
'expire' => 86400,
// 前缀
'prefix' => '',
];
+10
View File
@@ -0,0 +1,10 @@
<?php
// +----------------------------------------------------------------------
// | Trace设置 开启调试模式后有效
// +----------------------------------------------------------------------
return [
// 内置Html和Console两种方式 支持扩展
'type' => 'Html',
// 读取的日志通道名
'channel' => '',
];
+32
View File
@@ -0,0 +1,32 @@
<?php
// +----------------------------------------------------------------------
// | 模板设置
// +----------------------------------------------------------------------
return [
// 模板引擎类型使用Think
'type' => 'Think',
// 默认模板渲染规则 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' => '}',
'tpl_replace_string' => array(
'{__STATIC__}' => '/static',
'{__GOUGU__}' => '/static/assets',
'{__CSS__}' => '/static/home/css',
'{__JS__}' => '/static/home/js',
'{__IMG__}' => '/static/home/images'
),
];
+26
View File
@@ -0,0 +1,26 @@
<?php
// +----------------------------------------------------------------------
// | 企业微信设置
// +----------------------------------------------------------------------
return [
// 是否打通企业微信
'workweixin' => false,
// 企业id
'corpid' => 'ww04ce31364b7e2322',
// 功能模块id
'agentid' => '1000015',
// 功能模块secret
'corpsecret' => 'VvBCWVmm9DVaTs-RbxJmSy-psruoN01VwnVqlwgxScU',
// 登录回调页面
'redirectUri' =>'http://www.gouguoa.com/qiye/login/callback',
'host' =>'http://www.gouguoa.com',
// 是否是授权登录
'authorization' => true,
//授权域名
'auth_host' => '192.168.31.184',
//授权key
'auth_key' => 'UtGcWvJkME',
//授权码
'auth_code' => '1D9T2J.R1o6y8t.T3/1o.91X8L4ZUft7Gpc9Wiv8Jjk1MkEymboVbhixlQeVE0aVh6akQrME4zL05SeHc9PQ==',
];