作者 lyh

gx

@@ -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
@@ -69,7 +69,7 @@ class ProjectServer extends BaseService @@ -69,7 +69,7 @@ class ProjectServer extends BaseService
69 * @author zbj 69 * @author zbj
70 * @date 2023/4/23 70 * @date 2023/4/23
71 */ 71 */
72 - public static function initTable($project) 72 + public static function initTable()
73 { 73 {
74 $database_name = DB::connection('custom_tmp_mysql')->getDatabaseName(); 74 $database_name = DB::connection('custom_tmp_mysql')->getDatabaseName();
75 $table = Schema::connection('custom_tmp_mysql')->getAllTables(); 75 $table = Schema::connection('custom_tmp_mysql')->getAllTables();