|
...
|
...
|
@@ -79,7 +79,6 @@ class KeywordLogic extends BaseLogic |
|
|
|
* @time :2023/8/28 14:03
|
|
|
|
*/
|
|
|
|
public function batchAdd(){
|
|
|
|
$ids = [];
|
|
|
|
if(!empty($this->param['title']) && is_array($this->param['title'])){
|
|
|
|
foreach ($this->param['title'] as $v){
|
|
|
|
$param['project_id'] = $this->user['project_id'];
|
|
...
|
...
|
@@ -87,11 +86,10 @@ class KeywordLogic extends BaseLogic |
|
|
|
$param['updated_at'] = $param['created_at'];
|
|
|
|
$param['title'] = $v;
|
|
|
|
$id = $this->model->insertGetId($param);
|
|
|
|
$ids[] = $id;
|
|
|
|
RouteMap::setRoute($v, RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $this->success($ids);
|
|
|
|
return $this->success();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
...
|
...
|
|