正在显示
1 个修改的文件
包含
5 行增加
和
0 行删除
| @@ -48,6 +48,11 @@ class AyrReleaseLogic extends BaseLogic | @@ -48,6 +48,11 @@ class AyrReleaseLogic extends BaseLogic | ||
| 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']]); | 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){ | 49 | if($info === false){ |
| 50 | $this->model->add($this->param); | 50 | $this->model->add($this->param); |
| 51 | + }else{ | ||
| 52 | + $result_data = json_decode($this->param['result_data']); | ||
| 53 | + if(isset($result_data['status']) && $result_data['status'] == 'success'){ | ||
| 54 | + $this->model->edit($this->param,['id'=>$info['id']]); | ||
| 55 | + } | ||
| 51 | } | 56 | } |
| 52 | return $this->success(); | 57 | return $this->success(); |
| 53 | } | 58 | } |
-
请 注册 或 登录 后发表评论