|
...
|
...
|
@@ -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();
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|