|
@@ -35,7 +35,7 @@ class ProjectServer extends BaseService |
|
@@ -35,7 +35,7 @@ class ProjectServer extends BaseService |
|
35
|
// 设置 database.connections.custom_mysql 配置
|
35
|
// 设置 database.connections.custom_mysql 配置
|
|
36
|
$encrypt = new EncryptUtils();
|
36
|
$encrypt = new EncryptUtils();
|
|
37
|
config(['database.connections.custom_mysql.host' => $project->mysqlConfig->host]);
|
37
|
config(['database.connections.custom_mysql.host' => $project->mysqlConfig->host]);
|
|
38
|
- config(['database.connections.custom_mysql.port' => 63996]);
|
38
|
+ config(['database.connections.custom_mysql.port' => (int)$encrypt->unlock_url($project->mysqlConfig->port)]);
|
|
39
|
config(['database.connections.custom_mysql.database' => $project->databaseName()]);
|
39
|
config(['database.connections.custom_mysql.database' => $project->databaseName()]);
|
|
40
|
config(['database.connections.custom_mysql.username' => $encrypt->unlock_url($project->mysqlConfig->user)]);
|
40
|
config(['database.connections.custom_mysql.username' => $encrypt->unlock_url($project->mysqlConfig->user)]);
|
|
41
|
config(['database.connections.custom_mysql.password' => $encrypt->unlock_url($project->mysqlConfig->password)]);
|
41
|
config(['database.connections.custom_mysql.password' => $encrypt->unlock_url($project->mysqlConfig->password)]);
|