正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -113,8 +113,8 @@ class KeywordLogic extends BaseLogic | @@ -113,8 +113,8 @@ class KeywordLogic extends BaseLogic | ||
| 113 | $param['updated_at'] = $param['created_at']; | 113 | $param['updated_at'] = $param['created_at']; |
| 114 | $param['title'] = $v; | 114 | $param['title'] = $v; |
| 115 | $id = $this->model->insertGetId($param); | 115 | $id = $this->model->insertGetId($param); |
| 116 | -// $route = RouteMap::setRoute($newStr, RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']); | ||
| 117 | -// $this->model->edit(['route'=>$route],['id'=>$id]); | 116 | + $route = RouteMap::setRoute($v, RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']); |
| 117 | + $this->model->edit(['route'=>$route],['id'=>$id]); | ||
| 118 | } | 118 | } |
| 119 | } | 119 | } |
| 120 | return $this->success(); | 120 | return $this->success(); |
-
请 注册 或 登录 后发表评论