|
...
|
...
|
@@ -45,9 +45,12 @@ class AyrReleaseLogic extends BaseLogic |
|
|
|
}
|
|
|
|
$this->param['result_data'] = $res;
|
|
|
|
$this->param['platforms'] = json_encode($this->param['platforms']);
|
|
|
|
$rs = $this->model->add($this->param);
|
|
|
|
if($rs === false){
|
|
|
|
$this->fail('error');
|
|
|
|
$info = $this->model->read(['platforms'=>$this->param['platforms'],'operator_id'=>$this->param['operator_id'],'project_id'=>$this->param['project_id'],'title'=>$this->param['title']]);
|
|
|
|
if($info === false){
|
|
|
|
$rs = $this->model->add($this->param);
|
|
|
|
if($rs === false){
|
|
|
|
$this->fail('error');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $this->success();
|
|
|
|
}
|
...
|
...
|
|