作者 lyh

gx

@@ -64,7 +64,7 @@ class ServerConfigController extends BaseController @@ -64,7 +64,7 @@ class ServerConfigController extends BaseController
64 * @date 2023/4/23 64 * @date 2023/4/23
65 */ 65 */
66 public function save(ServerConfigRequest $request, ServerConfigLogic $logic){ 66 public function save(ServerConfigRequest $request, ServerConfigLogic $logic){
67 - $data = $logic->serviceConfigSave($this->param); 67 + $data = $logic->serviceConfigSave();
68 return $this->success($data); 68 return $this->success($data);
69 } 69 }
70 70
@@ -74,10 +74,10 @@ class ServerConfigLogic extends BaseLogic @@ -74,10 +74,10 @@ class ServerConfigLogic extends BaseLogic
74 if($project_list === false){ 74 if($project_list === false){
75 $this->fail('项目不存在或者已经删除'); 75 $this->fail('项目不存在或者已经删除');
76 } 76 }
77 - DB::beginTransaction();  
78 - try { 77 +// DB::beginTransaction();
  78 +// try {
79 //保存配置 79 //保存配置
80 - $res = $this->model->add($this->param); 80 + $res = $this->model->save($this->param);
81 if ($this->param['type'] == ServerConfig::TYPE_SERVER) { 81 if ($this->param['type'] == ServerConfig::TYPE_SERVER) {
82 $data['serve_id'] = $res['id']; 82 $data['serve_id'] = $res['id'];
83 }else{ 83 }else{
@@ -93,11 +93,11 @@ class ServerConfigLogic extends BaseLogic @@ -93,11 +93,11 @@ class ServerConfigLogic extends BaseLogic
93 // //创建表 93 // //创建表
94 // ProjectServer::initTable($project); 94 // ProjectServer::initTable($project);
95 // } 95 // }
96 - DB::commit();  
97 - } catch (\Exception $e) {  
98 - DB::rollBack();  
99 - $this->fail('保存失败');  
100 - } 96 +// DB::commit();
  97 +// } catch (\Exception $e) {
  98 +// DB::rollBack();
  99 +// $this->fail('保存失败');
  100 +// }
101 return $this->success(); 101 return $this->success();
102 } 102 }
103 103