|
@@ -60,10 +60,10 @@ class KeywordLogic extends BaseLogic |
|
@@ -60,10 +60,10 @@ class KeywordLogic extends BaseLogic |
|
60
|
$this->param['created_at'] = date('Y-m-d H:i:s');
|
60
|
$this->param['created_at'] = date('Y-m-d H:i:s');
|
|
61
|
$this->param['updated_at'] = $this->param['created_at'];
|
61
|
$this->param['updated_at'] = $this->param['created_at'];
|
|
62
|
$id = $this->model->insertGetId($this->param);
|
62
|
$id = $this->model->insertGetId($this->param);
|
|
63
|
- //路由映射
|
|
|
|
64
|
- $route = RouteMap::setRoute($this->param['title'], RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']);
|
|
|
|
65
|
- $this->model->edit(['route'=>$route],['id'=>$id]);
|
|
|
|
66
|
}
|
63
|
}
|
|
|
|
64
|
+ //路由映射
|
|
|
|
65
|
+ $route = RouteMap::setRoute($this->param['title'], RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']);
|
|
|
|
66
|
+ $this->model->edit(['route'=>$route],['id'=>$id]);
|
|
67
|
//清除缓存
|
67
|
//清除缓存
|
|
68
|
Common::del_user_cache('product_keyword',$this->user['project_id']);
|
68
|
Common::del_user_cache('product_keyword',$this->user['project_id']);
|
|
69
|
DB::commit();
|
69
|
DB::commit();
|