正在显示
1 个修改的文件
包含
6 行增加
和
3 行删除
| @@ -45,9 +45,12 @@ class AyrReleaseLogic extends BaseLogic | @@ -45,9 +45,12 @@ class AyrReleaseLogic extends BaseLogic | ||
| 45 | } | 45 | } |
| 46 | $this->param['result_data'] = $res; | 46 | $this->param['result_data'] = $res; |
| 47 | $this->param['platforms'] = json_encode($this->param['platforms']); | 47 | $this->param['platforms'] = json_encode($this->param['platforms']); |
| 48 | - $rs = $this->model->add($this->param); | ||
| 49 | - if($rs === false){ | ||
| 50 | - $this->fail('error'); | 48 | + $info = $this->model->read(['platforms'=>$this->param['platforms'],'operator_id'=>$this->param['operator_id'],'project_id'=>$this->param['project_id'],'title'=>$this->param['title']]); |
| 49 | + if($info === false){ | ||
| 50 | + $rs = $this->model->add($this->param); | ||
| 51 | + if($rs === false){ | ||
| 52 | + $this->fail('error'); | ||
| 53 | + } | ||
| 51 | } | 54 | } |
| 52 | return $this->success(); | 55 | return $this->success(); |
| 53 | } | 56 | } |
-
请 注册 或 登录 后发表评论