|
...
|
...
|
@@ -117,6 +117,9 @@ class ProjectLogic extends BaseLogic |
|
|
|
if(isset($info['mysql_id']) && !empty($info['mysql_id'])){
|
|
|
|
$info['mysql_id_name'] = (new ServerConfig())->read(['id'=>$info['mysql_id']])['title'];
|
|
|
|
}
|
|
|
|
if($info['extend_type'] != 0){
|
|
|
|
$info['type'] = $info['extend_type'];
|
|
|
|
}
|
|
|
|
return $this->success($info);
|
|
|
|
}
|
|
|
|
public function save($param){
|
|
...
|
...
|
@@ -133,6 +136,10 @@ class ProjectLogic extends BaseLogic |
|
|
|
if(!empty($param['deploy_build']['test_domain'])) unset($param['deploy_build']['test_domain']);
|
|
|
|
if(!empty($param['deploy_build']['plan'])) unset($param['deploy_build']['plan']);
|
|
|
|
if(!empty($param['deploy_optimize']['api_no'])) unset($param['deploy_optimize']['api_no']);
|
|
|
|
if($param['type'] == 6){
|
|
|
|
$param['extend_type'] == 6;
|
|
|
|
unset($param['type']);
|
|
|
|
}
|
|
|
|
$res = parent::save($param);
|
|
|
|
$param['id'] = $res['id'];
|
|
|
|
$this->savePayment($param);
|
...
|
...
|
|