|
...
|
...
|
@@ -64,6 +64,7 @@ class KeywordLogic extends BaseLogic |
|
|
|
//路由映射
|
|
|
|
$route = RouteMap::setRoute($this->param['title'], RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']);
|
|
|
|
$this->addUpdateNotify(RouteMap::SOURCE_PRODUCT_KEYWORD,$route);
|
|
|
|
$this->curlDelRoute(['new_route'=>$route]);
|
|
|
|
$this->model->edit(['route'=>$route],['id'=>$id]);
|
|
|
|
}
|
|
|
|
//清除缓存
|
|
...
|
...
|
@@ -142,6 +143,7 @@ class KeywordLogic extends BaseLogic |
|
|
|
foreach ($idArr as $v){
|
|
|
|
$this->model = new Keyword();
|
|
|
|
$route = RouteMap::setRoute($v['title'], RouteMap::SOURCE_PRODUCT_KEYWORD, $v['id'], $this->user['project_id']);
|
|
|
|
$this->curlDelRoute(['new_route'=>$route]);
|
|
|
|
$this->model->edit(['route'=>$route],['id'=>$v['id']]);
|
|
|
|
}
|
|
|
|
}catch (\Exception $e){
|
...
|
...
|
|