正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -42,12 +42,12 @@ class TemplateLabelLogic extends BaseLogic | @@ -42,12 +42,12 @@ class TemplateLabelLogic extends BaseLogic | ||
| 42 | public function saveLabel(){ | 42 | public function saveLabel(){ |
| 43 | if(isset($this->param['id']) && !empty($this->param['id'])){ | 43 | if(isset($this->param['id']) && !empty($this->param['id'])){ |
| 44 | $id = $this->param['id']; | 44 | $id = $this->param['id']; |
| 45 | - $info = $this->model->read(['name'=>$this->param['name'],['template_id'=>$this->param['template_id']],'id'=>['!=',$id]],['id']); | 45 | + $info = $this->model->read(['name'=>$this->param['name'],'template_id'=>$this->param['template_id'],'id'=>['!=',$id]],['id']); |
| 46 | if($info === false){ | 46 | if($info === false){ |
| 47 | $this->model->edit($this->param,['id'=>$id]); | 47 | $this->model->edit($this->param,['id'=>$id]); |
| 48 | } | 48 | } |
| 49 | }else{ | 49 | }else{ |
| 50 | - $info = $this->model->read(['name'=>$this->param['name'],['template_id'=>$this->param['template_id']]],['id']); | 50 | + $info = $this->model->read(['name'=>$this->param['name'],'template_id'=>$this->param['template_id']],['id']); |
| 51 | if($info === false){ | 51 | if($info === false){ |
| 52 | $this->param['manager_id'] = $this->manager['id']; | 52 | $this->param['manager_id'] = $this->manager['id']; |
| 53 | $id = $this->model->addReturnId($this->param); | 53 | $id = $this->model->addReturnId($this->param); |
-
请 注册 或 登录 后发表评论