正在显示
3 个修改的文件
包含
0 行增加
和
3 行删除
| @@ -39,7 +39,6 @@ class BlogLogic extends BaseLogic | @@ -39,7 +39,6 @@ class BlogLogic extends BaseLogic | ||
| 39 | $this->editNewsRoute($this->param['id'],$this->param['url']); | 39 | $this->editNewsRoute($this->param['id'],$this->param['url']); |
| 40 | $this->edit($this->param,['id'=>$this->param['id']]); | 40 | $this->edit($this->param,['id'=>$this->param['id']]); |
| 41 | }else{ | 41 | }else{ |
| 42 | - $this->param['url'] = $this->param['url'].'-'.RouteMap::SOURCE_BLOG; | ||
| 43 | $id = $this->model->addReturnId($this->param); | 42 | $id = $this->model->addReturnId($this->param); |
| 44 | } | 43 | } |
| 45 | $route = RouteMap::setRoute($this->param['url'], RouteMap::SOURCE_BLOG, $id, $this->user['project_id']); | 44 | $route = RouteMap::setRoute($this->param['url'], RouteMap::SOURCE_BLOG, $id, $this->user['project_id']); |
| @@ -68,7 +68,6 @@ class NewsLogic extends BaseLogic | @@ -68,7 +68,6 @@ class NewsLogic extends BaseLogic | ||
| 68 | $id = $this->param['id']; | 68 | $id = $this->param['id']; |
| 69 | $this->edit($this->param, ['id' => $this->param['id']]); | 69 | $this->edit($this->param, ['id' => $this->param['id']]); |
| 70 | } else { | 70 | } else { |
| 71 | - $this->param['url'] = $this->param['url'].'-'.RouteMap::SOURCE_NEWS; | ||
| 72 | $id = $this->model->addReturnId($this->param); | 71 | $id = $this->model->addReturnId($this->param); |
| 73 | } | 72 | } |
| 74 | //更新路由 | 73 | //更新路由 |
| @@ -60,7 +60,6 @@ class KeywordLogic extends BaseLogic | @@ -60,7 +60,6 @@ class KeywordLogic extends BaseLogic | ||
| 60 | $this->param['project_id'] = $this->user['project_id']; | 60 | $this->param['project_id'] = $this->user['project_id']; |
| 61 | $this->param['created_at'] = date('Y-m-d H:i:s'); | 61 | $this->param['created_at'] = date('Y-m-d H:i:s'); |
| 62 | $this->param['updated_at'] = $this->param['created_at']; | 62 | $this->param['updated_at'] = $this->param['created_at']; |
| 63 | - $this->param['route'] = $this->param['route'].'-'.RouteMap::SOURCE_PRODUCT; | ||
| 64 | $id = $this->model->insertGetId($this->param); | 63 | $id = $this->model->insertGetId($this->param); |
| 65 | //路由映射 | 64 | //路由映射 |
| 66 | $route = RouteMap::setRoute($this->param['title'], RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']); | 65 | $route = RouteMap::setRoute($this->param['title'], RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']); |
-
请 注册 或 登录 后发表评论