作者 lyh

gx

... ... @@ -37,8 +37,6 @@ class LoginAuthMiddleware
}
// 设置数据库
$project = ProjectServer::useProject($info['project_id']);
var_dump($project);
die();
if(empty($project)){
return response(['code'=>Code::USER_LOGIN_ERROE,'msg'=>'数据库未配置']);
}
... ...
... ... @@ -31,6 +31,8 @@ class ProjectServer extends BaseService
if(!$project->mysqlConfig){
return false;
}
var_dump($project->mysqlConfig);
die();
// 设置 database.connections.custom_mysql 配置
config(['database.connections.custom_mysql.host' => $project->mysqlConfig->host]);
config(['database.connections.custom_mysql.port' => $project->mysqlConfig->port]);
... ...