|
...
|
...
|
@@ -54,7 +54,7 @@ class KeywordLogic extends BaseLogic |
|
|
|
if(isset($this->param['id']) && !empty($this->param['id'])){
|
|
|
|
$route = RouteMap::setRoute($this->param['title'], RouteMap::SOURCE_PRODUCT_KEYWORD, $this->param['id'], $this->user['project_id']);
|
|
|
|
$id = $this->editCategoryRoute($this->param['id'],$route);
|
|
|
|
$this->model->edit($this->param,['id'=>$this->param['id']]);
|
|
|
|
$this->model->edit($this->param,['id'=>$id]);
|
|
|
|
}else{
|
|
|
|
$this->param['project_id'] = $this->user['project_id'];
|
|
|
|
$this->param['created_at'] = date('Y-m-d H:i:s');
|
|
...
|
...
|
@@ -62,8 +62,8 @@ class KeywordLogic extends BaseLogic |
|
|
|
$id = $this->model->insertGetId($this->param);
|
|
|
|
//路由映射
|
|
|
|
$route = RouteMap::setRoute($this->param['title'], RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']);
|
|
|
|
$this->model->edit(['route'=>$route],['id'=>$id]);
|
|
|
|
}
|
|
|
|
$this->model->edit(['route'=>$route],['id'=>$id]);
|
|
|
|
//清除缓存
|
|
|
|
Common::del_user_cache('product_keyword',$this->user['project_id']);
|
|
|
|
DB::commit();
|
...
|
...
|
|