正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -62,8 +62,8 @@ class KeywordLogic extends BaseLogic | @@ -62,8 +62,8 @@ class KeywordLogic extends BaseLogic | ||
| 62 | $id = $this->model->insertGetId($this->param); | 62 | $id = $this->model->insertGetId($this->param); |
| 63 | //路由映射 | 63 | //路由映射 |
| 64 | $route = RouteMap::setRoute($this->param['title'], RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']); | 64 | $route = RouteMap::setRoute($this->param['title'], RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']); |
| 65 | + $this->model->edit(['route'=>$route],['id'=>$id]); | ||
| 65 | } | 66 | } |
| 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(); |
-
请 注册 或 登录 后发表评论