正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -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){ |
-
请 注册 或 登录 后发表评论