This commit is contained in:
molong
2022-10-04 15:10:37 +08:00
parent d2752116a7
commit 96319f0898
23 changed files with 338 additions and 39 deletions

4
config/auth.php Normal file
View File

@@ -0,0 +1,4 @@
<?php
return [
'admin_root' => [1]
];

View File

@@ -57,6 +57,43 @@ return [
// 开启字段缓存
'fields_cache' => false,
],
'bestcrm' => [
// 数据库类型
'type' => env('database.type', 'mysql'),
// 服务器地址
'hostname' => env('database.hostname', '127.0.0.1'),
// 数据库名
'database' => 'bestcrm_www',
// 用户名
'username' => 'bestcrm_www',
// 密码
'password' => 'L6XmtaD47rYxMA68',
// 端口
'hostport' => env('database.hostport', '3306'),
// 数据库连接参数
'params' => [],
// 数据库编码默认采用utf8
'charset' => env('database.charset', 'utf8'),
// 数据库表前缀
'prefix' => env('database.prefix', 'sent_'),
// 数据库部署方式: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,
]
// 更多的数据库配置信息
],

View File

@@ -18,8 +18,8 @@ return [
'unique_id_key' => 'uid',
'signer_key' => 'tensent',
'not_before' => 0,
'expires_at' => 3600,
'refresh_ttL' => 7200,
'expires_at' => 86400,
'refresh_ttL' => 72000,
'signer' => 'Lcobucci\JWT\Signer\Hmac\Sha256',
'type' => 'Header',
'relogin_code' => 50001,