|
...
|
...
|
@@ -107,6 +107,8 @@ class KeywordLogic extends BaseLogic |
|
|
|
public function batchAdd(){
|
|
|
|
if(!empty($this->param['title']) && is_array($this->param['title'])){
|
|
|
|
foreach ($this->param['title'] as $v){
|
|
|
|
$info = $this->model->read(['title'=>$v]);
|
|
|
|
if($info === false){
|
|
|
|
$param['project_id'] = $this->user['project_id'];
|
|
|
|
$param['created_at'] = date('Y-m-d H:i:s');
|
|
|
|
$param['updated_at'] = $param['created_at'];
|
|
...
|
...
|
@@ -117,6 +119,7 @@ class KeywordLogic extends BaseLogic |
|
|
|
$this->model->edit(['route'=>$route],['id'=>$id]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $this->success();
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|