From 232e767b7644060ec9c6802ffd0379cc89f356ef Mon Sep 17 00:00:00 2001 From: ASUS <515617283@qq.com> Date: Fri, 15 Aug 2025 16:01:41 +0800 Subject: [PATCH] database --- config/plugin/webman/redis-queue/redis.php | 2 +- config/think-orm.php | 288 ++++++++++----------- 2 files changed, 145 insertions(+), 145 deletions(-) diff --git a/config/plugin/webman/redis-queue/redis.php b/config/plugin/webman/redis-queue/redis.php index 6abf860..bc381fd 100644 --- a/config/plugin/webman/redis-queue/redis.php +++ b/config/plugin/webman/redis-queue/redis.php @@ -3,7 +3,7 @@ return [ 'default' => [ 'host' => 'redis://127.0.0.1:6379', 'options' => [ - 'auth' => null, + 'auth' => '222222', 'db' => 0, 'prefix' => '', 'max_attempts' => 5, diff --git a/config/think-orm.php b/config/think-orm.php index 79ffb6b..1e4b256 100644 --- a/config/think-orm.php +++ b/config/think-orm.php @@ -7,15 +7,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('HOSTNAME', 'rm-gc7xx913734hv5w5q.mysql.cn-chengdu.rds.aliyuncs.com'), + 'hostname' => getenv('HOSTNAME')?:'rm-gc7xx913734hv5w5q.mysql.cn-chengdu.rds.aliyuncs.com', // 数据库名 'database' => 'duanju', // 数据库用户名 - 'username' => getenv('USERNAME', 'video_user'), + 'username' => getenv('USERNAME')?:'video_user', // 数据库密码 - 'password' => getenv('PASSWORD', 'VideoUser@1'), + 'password' => getenv('PASSWORD')?:'VideoUser@1', // 数据库连接端口 - 'hostport' => getenv('HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -42,15 +42,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('HOSTNAME', 'rm-gc7xx913734hv5w5q.mysql.cn-chengdu.rds.aliyuncs.com'), + 'hostname' => getenv('HOSTNAME')?:'rm-gc7xx913734hv5w5q.mysql.cn-chengdu.rds.aliyuncs.com', // 数据库名 'database' => 'duanju-0', // 数据库用户名 - 'username' => getenv('USERNAME', 'video_user'), + 'username' => getenv('USERNAME')?:'video_user', // 数据库密码 - 'password' => getenv('PASSWORD', 'VideoUser@1'), + 'password' => getenv('PASSWORD')?:'VideoUser@1', // 数据库连接端口 - 'hostport' => getenv('HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -77,15 +77,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('HOSTNAME', 'rm-gc7xx913734hv5w5q.mysql.cn-chengdu.rds.aliyuncs.com'), + 'hostname' => getenv('HOSTNAME')?:'rm-gc7xx913734hv5w5q.mysql.cn-chengdu.rds.aliyuncs.com', // 数据库名 'database' => 'duanju-1', // 数据库用户名 - 'username' => getenv('USERNAME', 'video_user'), + 'username' => getenv('USERNAME')?:'video_user', // 数据库密码 - 'password' => getenv('PASSWORD', 'VideoUser@1'), + 'password' => getenv('PASSWORD')?:'VideoUser@1', // 数据库连接端口 - 'hostport' => getenv('HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -113,15 +113,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('HOSTNAME', 'rm-gc7xx913734hv5w5q.mysql.cn-chengdu.rds.aliyuncs.com'), + 'hostname' => getenv('HOSTNAME')?:'rm-gc7xx913734hv5w5q.mysql.cn-chengdu.rds.aliyuncs.com', // 数据库名 'database' => 'duanju-2', // 数据库用户名 - 'username' => getenv('USERNAME', 'video_user'), + 'username' => getenv('USERNAME')?:'video_user', // 数据库密码 - 'password' => getenv('PASSWORD', 'VideoUser@1'), + 'password' => getenv('PASSWORD')?:'VideoUser@1', // 数据库连接端口 - 'hostport' => getenv('HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -148,15 +148,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('HOSTNAME', 'rm-gc7xx913734hv5w5q.mysql.cn-chengdu.rds.aliyuncs.com'), + 'hostname' => getenv('HOSTNAME')?:'rm-gc7xx913734hv5w5q.mysql.cn-chengdu.rds.aliyuncs.com', // 数据库名 'database' => 'duanju-3', // 数据库用户名 - 'username' => getenv('USERNAME', 'video_user'), + 'username' => getenv('USERNAME')?:'video_user', // 数据库密码 - 'password' => getenv('PASSWORD', 'VideoUser@1'), + 'password' => getenv('PASSWORD')?:'VideoUser@1', // 数据库连接端口 - 'hostport' => getenv('HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -183,15 +183,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('HOSTNAME', 'rm-gc7xx913734hv5w5q.mysql.cn-chengdu.rds.aliyuncs.com'), + 'hostname' => getenv('HOSTNAME')?:'rm-gc7xx913734hv5w5q.mysql.cn-chengdu.rds.aliyuncs.com', // 数据库名 'database' => 'duanju-4', // 数据库用户名 - 'username' => getenv('USERNAME', 'video_user'), + 'username' => getenv('USERNAME')?:'video_user', // 数据库密码 - 'password' => getenv('PASSWORD', 'VideoUser@1'), + 'password' => getenv('PASSWORD')?:'VideoUser@1', // 数据库连接端口 - 'hostport' => getenv('HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -219,15 +219,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('SLAVE_HOSTNAME', '172.18.96.8'), + 'hostname' => getenv('SLAVE_HOSTNAME')?:'172.18.96.8', // 数据库名 'database' => 'duanju', // 数据库用户名 - 'username' => getenv('SLAVE_USERNAME', 'root'), + 'username' => getenv('SLAVE_USERNAME')?:'root', // 数据库密码 - 'password' => getenv('SLAVE_PASSWORD', 'VideoUser1@'), + 'password' => getenv('SLAVE_PASSWORD')?:'VideoUser1@', // 数据库连接端口 - 'hostport' => getenv('SLAVE_HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -258,15 +258,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('SLAVE_HOSTNAME', '172.18.96.8'), + 'hostname' => getenv('SLAVE_HOSTNAME')?:'172.18.96.8', // 数据库名 'database' => 'duanju-0', // 数据库用户名 - 'username' => getenv('SLAVE_USERNAME', 'root'), + 'username' => getenv('SLAVE_USERNAME')?:'root', // 数据库密码 - 'password' => getenv('SLAVE_PASSWORD', 'VideoUser1@'), + 'password' => getenv('SLAVE_PASSWORD')?:'VideoUser1@', // 数据库连接端口 - 'hostport' => getenv('SLAVE_HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -294,15 +294,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('SLAVE_HOSTNAME', '172.18.96.8'), + 'hostname' => getenv('SLAVE_HOSTNAME')?:'172.18.96.8', // 数据库名 'database' => 'duanju-1', // 数据库用户名 - 'username' => getenv('SLAVE_USERNAME', 'root'), + 'username' => getenv('SLAVE_USERNAME')?:'root', // 数据库密码 - 'password' => getenv('SLAVE_PASSWORD', 'VideoUser1@'), + 'password' => getenv('SLAVE_PASSWORD')?:'VideoUser1@', // 数据库连接端口 - 'hostport' => getenv('SLAVE_HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -330,15 +330,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('SLAVE_HOSTNAME', '172.18.96.8'), + 'hostname' => getenv('SLAVE_HOSTNAME')?:'172.18.96.8', // 数据库名 'database' => 'duanju-2', // 数据库用户名 - 'username' => getenv('SLAVE_USERNAME', 'root'), + 'username' => getenv('SLAVE_USERNAME')?:'root', // 数据库密码 - 'password' => getenv('SLAVE_PASSWORD', 'VideoUser1@'), + 'password' => getenv('SLAVE_PASSWORD')?:'VideoUser1@', // 数据库连接端口 - 'hostport' => getenv('SLAVE_HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -366,15 +366,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('SLAVE_HOSTNAME', '172.18.96.8'), + 'hostname' => getenv('SLAVE_HOSTNAME')?:'172.18.96.8', // 数据库名 'database' => 'duanju-3', // 数据库用户名 - 'username' => getenv('SLAVE_USERNAME', 'root'), + 'username' => getenv('SLAVE_USERNAME')?:'root', // 数据库密码 - 'password' => getenv('SLAVE_PASSWORD', 'VideoUser1@'), + 'password' => getenv('SLAVE_PASSWORD')?:'VideoUser1@', // 数据库连接端口 - 'hostport' => getenv('SLAVE_HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -401,15 +401,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('SLAVE_HOSTNAME', '172.18.96.8'), + 'hostname' => getenv('SLAVE_HOSTNAME')?:'172.18.96.8', // 数据库名 'database' => 'duanju-4', // 数据库用户名 - 'username' => getenv('SLAVE_USERNAME', 'root'), + 'username' => getenv('SLAVE_USERNAME')?:'root', // 数据库密码 - 'password' => getenv('SLAVE_PASSWORD', 'VideoUser1@'), + 'password' => getenv('SLAVE_PASSWORD')?:'VideoUser1@', // 数据库连接端口 - 'hostport' => getenv('SLAVE_HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -436,15 +436,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('SLAVE_HOSTNAME', '172.18.96.8'), + 'hostname' => getenv('SLAVE_HOSTNAME')?:'172.18.96.8', // 数据库名 'database' => 'duanju', // 数据库用户名 - 'username' => getenv('SLAVE_USERNAME', 'root'), + 'username' => getenv('SLAVE_USERNAME')?:'root', // 数据库密码 - 'password' => getenv('SLAVE_PASSWORD', 'VideoUser1@'), + 'password' => getenv('SLAVE_PASSWORD')?:'VideoUser1@', // 数据库连接端口 - 'hostport' => getenv('SLAVE_HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -471,15 +471,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('SLAVE_HOSTNAME', '172.18.96.8'), + 'hostname' => getenv('SLAVE_HOSTNAME')?:'172.18.96.8', // 数据库名 'database' => 'duanju-0', // 数据库用户名 - 'username' => getenv('SLAVE_USERNAME', 'root'), + 'username' => getenv('SLAVE_USERNAME')?:'root', // 数据库密码 - 'password' => getenv('SLAVE_PASSWORD', 'VideoUser1@'), + 'password' => getenv('SLAVE_PASSWORD')?:'VideoUser1@', // 数据库连接端口 - 'hostport' => getenv('SLAVE_HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -506,15 +506,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('SLAVE_HOSTNAME', '172.18.96.8'), + 'hostname' => getenv('SLAVE_HOSTNAME')?:'172.18.96.8', // 数据库名 'database' => 'duanju-1', // 数据库用户名 - 'username' => getenv('SLAVE_USERNAME', 'root'), + 'username' => getenv('SLAVE_USERNAME')?:'root', // 数据库密码 - 'password' => getenv('SLAVE_PASSWORD', 'VideoUser1@'), + 'password' => getenv('SLAVE_PASSWORD')?:'VideoUser1@', // 数据库连接端口 - 'hostport' => getenv('SLAVE_HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -541,15 +541,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('SLAVE_HOSTNAME', '172.18.96.8'), + 'hostname' => getenv('SLAVE_HOSTNAME')?:'172.18.96.8', // 数据库名 'database' => 'duanju-2', // 数据库用户名 - 'username' => getenv('SLAVE_USERNAME', 'root'), + 'username' => getenv('SLAVE_USERNAME')?:'root', // 数据库密码 - 'password' => getenv('SLAVE_PASSWORD', 'VideoUser1@'), + 'password' => getenv('SLAVE_PASSWORD')?:'VideoUser1@', // 数据库连接端口 - 'hostport' => getenv('SLAVE_HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -576,15 +576,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('SLAVE_HOSTNAME', '172.18.96.8'), + 'hostname' => getenv('SLAVE_HOSTNAME')?:'172.18.96.8', // 数据库名 'database' => 'duanju-3', // 数据库用户名 - 'username' => getenv('SLAVE_USERNAME', 'root'), + 'username' => getenv('SLAVE_USERNAME')?:'root', // 数据库密码 - 'password' => getenv('SLAVE_PASSWORD', 'VideoUser1@'), + 'password' => getenv('SLAVE_PASSWORD')?:'VideoUser1@', // 数据库连接端口 - 'hostport' => getenv('SLAVE_HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -611,15 +611,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('SLAVE_HOSTNAME', '172.18.96.8'), + 'hostname' => getenv('SLAVE_HOSTNAME')?:'172.18.96.8', // 数据库名 'database' => 'duanju-4', // 数据库用户名 - 'username' => getenv('SLAVE_USERNAME', 'root'), + 'username' => getenv('SLAVE_USERNAME')?:'root', // 数据库密码 - 'password' => getenv('SLAVE_PASSWORD', 'VideoUser1@'), + 'password' => getenv('SLAVE_PASSWORD')?:'VideoUser1@', // 数据库连接端口 - 'hostport' => getenv('SLAVE_HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -646,15 +646,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('SLAVE_HOSTNAME', '172.18.96.9'), + 'hostname' => getenv('SLAVE_HOSTNAME')?:'172.18.96.9', // 数据库名 'database' => 'duanju', // 数据库用户名 - 'username' => getenv('SLAVE_USERNAME', 'root'), + 'username' => getenv('SLAVE_USERNAME')?:'root', // 数据库密码 - 'password' => getenv('SLAVE_PASSWORD', 'VideoUser1@'), + 'password' => getenv('SLAVE_PASSWORD')?:'VideoUser1@', // 数据库连接端口 - 'hostport' => getenv('SLAVE_HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -681,15 +681,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('SLAVE_HOSTNAME', '172.18.96.9'), + 'hostname' => getenv('SLAVE_HOSTNAME')?:'172.18.96.9', // 数据库名 'database' => 'duanju-0', // 数据库用户名 - 'username' => getenv('SLAVE_USERNAME', 'root'), + 'username' => getenv('SLAVE_USERNAME')?:'root', // 数据库密码 - 'password' => getenv('SLAVE_PASSWORD', 'VideoUser1@'), + 'password' => getenv('SLAVE_PASSWORD')?:'VideoUser1@', // 数据库连接端口 - 'hostport' => getenv('SLAVE_HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -716,15 +716,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('SLAVE_HOSTNAME', '172.18.96.9'), + 'hostname' => getenv('SLAVE_HOSTNAME')?:'172.18.96.9', // 数据库名 'database' => 'duanju-1', // 数据库用户名 - 'username' => getenv('SLAVE_USERNAME', 'root'), + 'username' => getenv('SLAVE_USERNAME')?:'root', // 数据库密码 - 'password' => getenv('SLAVE_PASSWORD', 'VideoUser1@'), + 'password' => getenv('SLAVE_PASSWORD')?:'VideoUser1@', // 数据库连接端口 - 'hostport' => getenv('SLAVE_HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -751,15 +751,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('SLAVE_HOSTNAME', '172.18.96.9'), + 'hostname' => getenv('SLAVE_HOSTNAME')?:'172.18.96.9', // 数据库名 'database' => 'duanju-2', // 数据库用户名 - 'username' => getenv('SLAVE_USERNAME', 'root'), + 'username' => getenv('SLAVE_USERNAME')?:'root', // 数据库密码 - 'password' => getenv('SLAVE_PASSWORD', 'VideoUser1@'), + 'password' => getenv('SLAVE_PASSWORD')?:'VideoUser1@', // 数据库连接端口 - 'hostport' => getenv('SLAVE_HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -786,15 +786,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('SLAVE_HOSTNAME', '172.18.96.9'), + 'hostname' => getenv('SLAVE_HOSTNAME')?:'172.18.96.9', // 数据库名 'database' => 'duanju-3', // 数据库用户名 - 'username' => getenv('SLAVE_USERNAME', 'root'), + 'username' => getenv('SLAVE_USERNAME')?:'root', // 数据库密码 - 'password' => getenv('SLAVE_PASSWORD', 'VideoUser1@'), + 'password' => getenv('SLAVE_PASSWORD')?:'VideoUser1@', // 数据库连接端口 - 'hostport' => getenv('SLAVE_HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -821,15 +821,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('SLAVE_HOSTNAME', '172.18.96.9'), + 'hostname' => getenv('SLAVE_HOSTNAME')?:'172.18.96.9', // 数据库名 'database' => 'duanju-4', // 数据库用户名 - 'username' => getenv('SLAVE_USERNAME', 'root'), + 'username' => getenv('SLAVE_USERNAME')?:'root', // 数据库密码 - 'password' => getenv('SLAVE_PASSWORD', 'VideoUser1@'), + 'password' => getenv('SLAVE_PASSWORD')?:'VideoUser1@', // 数据库连接端口 - 'hostport' => getenv('SLAVE_HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -856,15 +856,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('SLAVE_HOSTNAME', '172.18.96.11'), + 'hostname' => getenv('SLAVE_HOSTNAME')?:'172.18.96.11', // 数据库名 'database' => 'duanju', // 数据库用户名 - 'username' => getenv('SLAVE_USERNAME', 'root'), + 'username' => getenv('SLAVE_USERNAME')?:'root', // 数据库密码 - 'password' => getenv('SLAVE_PASSWORD', 'VideoServer'), + 'password' => getenv('SLAVE_PASSWORD')?:'VideoServer', // 数据库连接端口 - 'hostport' => getenv('SLAVE_HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -891,15 +891,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('SLAVE_HOSTNAME', '172.18.96.11'), + 'hostname' => getenv('SLAVE_HOSTNAME')?:'172.18.96.11', // 数据库名 'database' => 'duanju-0', // 数据库用户名 - 'username' => getenv('SLAVE_USERNAME', 'root'), + 'username' => getenv('SLAVE_USERNAME')?:'root', // 数据库密码 - 'password' => getenv('SLAVE_PASSWORD', 'VideoServer'), + 'password' => getenv('SLAVE_PASSWORD')?:'VideoServer', // 数据库连接端口 - 'hostport' => getenv('SLAVE_HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -926,15 +926,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('SLAVE_HOSTNAME', '172.18.96.11'), + 'hostname' => getenv('SLAVE_HOSTNAME')?:'172.18.96.11', // 数据库名 'database' => 'duanju-1', // 数据库用户名 - 'username' => getenv('SLAVE_USERNAME', 'root'), + 'username' => getenv('SLAVE_USERNAME')?:'root', // 数据库密码 - 'password' => getenv('SLAVE_PASSWORD', 'VideoServer'), + 'password' => getenv('SLAVE_PASSWORD')?:'VideoServer', // 数据库连接端口 - 'hostport' => getenv('SLAVE_HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -961,15 +961,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('SLAVE_HOSTNAME', '172.18.96.11'), + 'hostname' => getenv('SLAVE_HOSTNAME')?:'172.18.96.11', // 数据库名 'database' => 'duanju-2', // 数据库用户名 - 'username' => getenv('SLAVE_USERNAME', 'root'), + 'username' => getenv('SLAVE_USERNAME')?:'root', // 数据库密码 - 'password' => getenv('SLAVE_PASSWORD', 'VideoServer'), + 'password' => getenv('SLAVE_PASSWORD')?:'VideoServer', // 数据库连接端口 - 'hostport' => getenv('SLAVE_HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -996,15 +996,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('SLAVE_HOSTNAME', '172.18.96.11'), + 'hostname' => getenv('SLAVE_HOSTNAME')?:'172.18.96.11', // 数据库名 'database' => 'duanju-3', // 数据库用户名 - 'username' => getenv('SLAVE_USERNAME', 'root'), + 'username' => getenv('SLAVE_USERNAME')?:'root', // 数据库密码 - 'password' => getenv('SLAVE_PASSWORD', 'VideoServer'), + 'password' => getenv('SLAVE_PASSWORD')?:'VideoServer', // 数据库连接端口 - 'hostport' => getenv('SLAVE_HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -1031,15 +1031,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('SLAVE_HOSTNAME', '172.18.96.11'), + 'hostname' => getenv('SLAVE_HOSTNAME')?:'172.18.96.11', // 数据库名 'database' => 'duanju-4', // 数据库用户名 - 'username' => getenv('SLAVE_USERNAME', 'root'), + 'username' => getenv('SLAVE_USERNAME')?:'root', // 数据库密码 - 'password' => getenv('SLAVE_PASSWORD', 'VideoServer'), + 'password' => getenv('SLAVE_PASSWORD')?:'VideoServer', // 数据库连接端口 - 'hostport' => getenv('SLAVE_HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -1067,15 +1067,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('SLAVE_HOSTNAME', '172.18.96.10'), + 'hostname' => getenv('SLAVE_HOSTNAME')?: '172.18.96.10', // 数据库名 'database' => 'duanju', // 数据库用户名 - 'username' => getenv('SLAVE_USERNAME', 'root'), + 'username' => getenv('SLAVE_USERNAME')?:'root', // 数据库密码 - 'password' => getenv('SLAVE_PASSWORD', 'VideoServer'), + 'password' => getenv('SLAVE_PASSWORD')?:'VideoServer', // 数据库连接端口 - 'hostport' => getenv('SLAVE_HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -1103,15 +1103,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('SLAVE_HOSTNAME', '172.18.96.10'), + 'hostname' => getenv('SLAVE_HOSTNAME')?: '172.18.96.10', // 数据库名 'database' => 'duanju-0', // 数据库用户名 - 'username' => getenv('SLAVE_USERNAME', 'root'), + 'username' => getenv('SLAVE_USERNAME')?:'root', // 数据库密码 - 'password' => getenv('SLAVE_PASSWORD', 'VideoServer'), + 'password' => getenv('SLAVE_PASSWORD')?:'VideoServer', // 数据库连接端口 - 'hostport' => getenv('SLAVE_HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -1139,15 +1139,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('SLAVE_HOSTNAME', '172.18.96.10'), + 'hostname' => getenv('SLAVE_HOSTNAME')?: '172.18.96.10', // 数据库名 'database' => 'duanju-1', // 数据库用户名 - 'username' => getenv('SLAVE_USERNAME', 'root'), + 'username' => getenv('SLAVE_USERNAME')?:'root', // 数据库密码 - 'password' => getenv('SLAVE_PASSWORD', 'VideoServer'), + 'password' => getenv('SLAVE_PASSWORD')?:'VideoServer', // 数据库连接端口 - 'hostport' => getenv('SLAVE_HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -1174,15 +1174,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('SLAVE_HOSTNAME', '172.18.96.10'), + 'hostname' => getenv('SLAVE_HOSTNAME')?: '172.18.96.10', // 数据库名 'database' => 'duanju-2', // 数据库用户名 - 'username' => getenv('SLAVE_USERNAME', 'root'), + 'username' => getenv('SLAVE_USERNAME')?:'root', // 数据库密码 - 'password' => getenv('SLAVE_PASSWORD', 'VideoServer'), + 'password' => getenv('SLAVE_PASSWORD')?:'VideoServer', // 数据库连接端口 - 'hostport' => getenv('SLAVE_HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -1210,15 +1210,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('SLAVE_HOSTNAME', '172.18.96.10'), + 'hostname' => getenv('SLAVE_HOSTNAME')?: '172.18.96.10', // 数据库名 'database' => 'duanju-3', // 数据库用户名 - 'username' => getenv('SLAVE_USERNAME', 'root'), + 'username' => getenv('SLAVE_USERNAME')?:'root', // 数据库密码 - 'password' => getenv('SLAVE_PASSWORD', 'VideoServer'), + 'password' => getenv('SLAVE_PASSWORD')?:'VideoServer', // 数据库连接端口 - 'hostport' => getenv('SLAVE_HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒 @@ -1245,15 +1245,15 @@ return [ // 数据库类型 'type' => 'mysql', // 服务器地址 - 'hostname' => getenv('SLAVE_HOSTNAME', '172.18.96.10'), + 'hostname' => getenv('SLAVE_HOSTNAME')?: '172.18.96.10', // 数据库名 'database' => 'duanju-4', // 数据库用户名 - 'username' => getenv('SLAVE_USERNAME', 'root'), + 'username' => getenv('SLAVE_USERNAME')?:'root', // 数据库密码 - 'password' => getenv('SLAVE_PASSWORD', 'VideoServer'), + 'password' => getenv('SLAVE_PASSWORD')?:'VideoServer', // 数据库连接端口 - 'hostport' => getenv('SLAVE_HOSTPORT', '3306'), + 'hostport' => '3306', // 数据库连接参数 'params' => [ // 连接超时3秒