作者 lyh

gx

... ... @@ -44,17 +44,17 @@ class WebSettingSeoLogic extends BaseLogic
* @time :2023/9/11 16:34
*/
public function seoSave(){
try {
// try {
$info = $this->model->read(['project_id'=>$this->user['project_id']]);
if($info === false){
$this->param['project_id'] = $this->user['project_id'];
$this->model->add($this->param);
}else{
$this->model->edit($this->param,['project_id'=>$this->param['project_id']]);
$this->model->edit($this->param,['project_id'=>$this->user['project_id']]);
}
}catch (\Exception $e){
$this->fail('error');
}
// }catch (\Exception $e){
// $this->fail('error');
// }
return $this->success();
}
}
... ...