作者 lyh

gx

@@ -51,7 +51,7 @@ class CustomModuleLogic extends BaseLogic @@ -51,7 +51,7 @@ class CustomModuleLogic extends BaseLogic
51 public function customModuleSave(){ 51 public function customModuleSave(){
52 ProjectServer::useProject($this->param['project_id']); 52 ProjectServer::useProject($this->param['project_id']);
53 $this->param = $this->handleParam($this->param); 53 $this->param = $this->handleParam($this->param);
54 -// $this->checkIsName($this->param['name'],$this->param['id'] ?? 0); 54 + $this->checkIsName($this->param['name'],$this->param['id'] ?? 0);
55 if(isset($this->param['id']) && !empty($this->param['id'])){ 55 if(isset($this->param['id']) && !empty($this->param['id'])){
56 $this->moduleEdit(); 56 $this->moduleEdit();
57 }else{ 57 }else{
@@ -116,7 +116,7 @@ class CustomModuleLogic extends BaseLogic @@ -116,7 +116,7 @@ class CustomModuleLogic extends BaseLogic
116 public function checkIsName($name,$id = 0){ 116 public function checkIsName($name,$id = 0){
117 $param['name'] = $name; 117 $param['name'] = $name;
118 if(!empty($id)){ 118 if(!empty($id)){
119 - $param['id'] = ['id'=>['!=',$id]]; 119 + $param['id'] = ['!=',$id];
120 } 120 }
121 $info = (new CustomModule())->read($param); 121 $info = (new CustomModule())->read($param);
122 if($info !== false){ 122 if($info !== false){