作者 lyh

gx

@@ -220,7 +220,7 @@ class ProjectLogic extends BaseLogic @@ -220,7 +220,7 @@ class ProjectLogic extends BaseLogic
220 if($param['type'] == Project::TYPE_ONE){ 220 if($param['type'] == Project::TYPE_ONE){
221 //初始化数据库 221 //初始化数据库
222 if(isset($param['mysql_id']) && !empty($param['mysql_id'])){ 222 if(isset($param['mysql_id']) && !empty($param['mysql_id'])){
223 - $this->initializationMysql($param['id']); 223 +// $this->initializationMysql($param['id']);
224 } 224 }
225 //初始账号 225 //初始账号
226 if(isset($param['mobile']) && !empty($param['mobile'])){ 226 if(isset($param['mobile']) && !empty($param['mobile'])){
@@ -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)]);