|
...
|
...
|
@@ -34,8 +34,14 @@ class ProjectCountryLogic extends BaseLogic |
|
|
|
* @method :post
|
|
|
|
* @time :2023/4/28 17:42
|
|
|
|
*/
|
|
|
|
public function country_edit(){
|
|
|
|
public function country_save(){
|
|
|
|
$info = $this->model->read(['project_id'=>$this->user['project_id']]);
|
|
|
|
if($info === false){
|
|
|
|
$this->param['project_id'] = $this->user['project_id'];
|
|
|
|
$rs = $this->model->add($this->param);
|
|
|
|
}else{
|
|
|
|
$rs = $this->model->edit($this->param,['project_id'=>$this->user['project_id']]);
|
|
|
|
}
|
|
|
|
if($rs === false){
|
|
|
|
$this->fail('当前数据不存在');
|
|
|
|
}
|
...
|
...
|
|