作者 lyh

gx

... ... @@ -154,11 +154,12 @@ class ProjectLogic extends BaseLogic
if(isset($param['mobile']) && !empty($param['mobile'])){
$this->createUser($param['mobile'],$res['id'],$param['lead_name']);
}
//更改服务器状态
if(isset($param['serve_id']) && !empty($param['serve_id'])){
$this->updateServe($param['serve_id']);
}
}
//更改服务器状态
if(isset($param['serve_id']) && !empty($param['serve_id'])){
$this->updateServe($param['serve_id']);
}
DB::commit();
}catch (\Exception $e){
DB::rollBack();
... ... @@ -180,7 +181,7 @@ class ProjectLogic extends BaseLogic
//创建数据库
ProjectServer::createDatabase($project);
//创建表
ProjectServer::initTable($project);
ProjectServer::initTable();
return $this->success();
}
... ...
... ... @@ -69,7 +69,7 @@ class ProjectServer extends BaseService
* @author zbj
* @date 2023/4/23
*/
public static function initTable($project)
public static function initTable()
{
$database_name = DB::connection('custom_tmp_mysql')->getDatabaseName();
$table = Schema::connection('custom_tmp_mysql')->getAllTables();
... ...