|
...
|
...
|
@@ -33,7 +33,7 @@ class ProjectServer extends BaseService |
|
|
|
return false;
|
|
|
|
}
|
|
|
|
$encrypt = new EncryptUtils();
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($encrypt->unlock_url($project->mysqlConfig->port), true) . PHP_EOL, FILE_APPEND);
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export((int)$encrypt->unlock_url($project->mysqlConfig->port), true) . PHP_EOL, FILE_APPEND);
|
|
|
|
// 设置 database.connections.custom_mysql 配置
|
|
|
|
config(['database.connections.custom_mysql.host' => $project->mysqlConfig->host]);
|
|
|
|
config(['database.connections.custom_mysql.port' => (int)$encrypt->unlock_url($project->mysqlConfig->port)]);
|
...
|
...
|
|