|
...
|
...
|
@@ -31,7 +31,7 @@ class AiBlogKeywordLogic extends BaseLogic |
|
|
|
*/
|
|
|
|
public function getKeywordInfo()
|
|
|
|
{
|
|
|
|
$data = $this->model->read(['project_id'=>$this->param['project_id']]);
|
|
|
|
$data = $this->model->read(['project_id'=>$this->user['project_id']]);
|
|
|
|
return $this->success($data);
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -44,11 +44,12 @@ class AiBlogKeywordLogic extends BaseLogic |
|
|
|
*/
|
|
|
|
public function saveKeyword()
|
|
|
|
{
|
|
|
|
$data = $this->model->read(['project_id'=>$this->param['project_id']]);
|
|
|
|
$data = $this->model->read(['project_id'=>$this->user['project_id']]);
|
|
|
|
if($data !== false){
|
|
|
|
$id = $data['id'];
|
|
|
|
$this->model->edit($this->param,['id'=>$id]);
|
|
|
|
}else{
|
|
|
|
$this->param['project_id'] = $this->user['project_id'];
|
|
|
|
$id = $this->model->addReturnId($this->param);
|
|
|
|
}
|
|
|
|
return $this->success(['id'=>$id]);
|
...
|
...
|
|