|
@@ -154,11 +154,12 @@ class ProjectLogic extends BaseLogic |
|
@@ -154,11 +154,12 @@ class ProjectLogic extends BaseLogic |
|
154
|
if(isset($param['mobile']) && !empty($param['mobile'])){
|
154
|
if(isset($param['mobile']) && !empty($param['mobile'])){
|
|
155
|
$this->createUser($param['mobile'],$res['id'],$param['lead_name']);
|
155
|
$this->createUser($param['mobile'],$res['id'],$param['lead_name']);
|
|
156
|
}
|
156
|
}
|
|
157
|
- }
|
|
|
|
158
|
//更改服务器状态
|
157
|
//更改服务器状态
|
|
159
|
if(isset($param['serve_id']) && !empty($param['serve_id'])){
|
158
|
if(isset($param['serve_id']) && !empty($param['serve_id'])){
|
|
160
|
$this->updateServe($param['serve_id']);
|
159
|
$this->updateServe($param['serve_id']);
|
|
161
|
}
|
160
|
}
|
|
|
|
161
|
+ }
|
|
|
|
162
|
+
|
|
162
|
DB::commit();
|
163
|
DB::commit();
|
|
163
|
}catch (\Exception $e){
|
164
|
}catch (\Exception $e){
|
|
164
|
DB::rollBack();
|
165
|
DB::rollBack();
|
|
@@ -180,7 +181,7 @@ class ProjectLogic extends BaseLogic |
|
@@ -180,7 +181,7 @@ class ProjectLogic extends BaseLogic |
|
180
|
//创建数据库
|
181
|
//创建数据库
|
|
181
|
ProjectServer::createDatabase($project);
|
182
|
ProjectServer::createDatabase($project);
|
|
182
|
//创建表
|
183
|
//创建表
|
|
183
|
- ProjectServer::initTable($project);
|
184
|
+ ProjectServer::initTable();
|
|
184
|
return $this->success();
|
185
|
return $this->success();
|
|
185
|
}
|
186
|
}
|
|
186
|
|
187
|
|