正在显示
1 个修改的文件
包含
5 行增加
和
5 行删除
| @@ -148,16 +148,16 @@ class KeywordLogic extends BaseLogic | @@ -148,16 +148,16 @@ class KeywordLogic extends BaseLogic | ||
| 148 | $this->model = new Keyword(); | 148 | $this->model = new Keyword(); |
| 149 | $info = $this->model->read(['title'=>$v]); | 149 | $info = $this->model->read(['title'=>$v]); |
| 150 | if($info === false){ | 150 | if($info === false){ |
| 151 | - $route = $this->specialRouteCheck($v); | 151 | +// $route = $this->specialRouteCheck($v); |
| 152 | $param['project_id'] = $this->user['project_id']; | 152 | $param['project_id'] = $this->user['project_id']; |
| 153 | $param['created_at'] = date('Y-m-d H:i:s'); | 153 | $param['created_at'] = date('Y-m-d H:i:s'); |
| 154 | $param['updated_at'] = $param['created_at']; | 154 | $param['updated_at'] = $param['created_at']; |
| 155 | $param['title'] = $v; | 155 | $param['title'] = $v; |
| 156 | - $param['route'] = $route; | 156 | +// $param['route'] = $route; |
| 157 | $id = $this->model->insertGetId($param); | 157 | $id = $this->model->insertGetId($param); |
| 158 | - $route = RouteMap::setRoute($route, RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']); | ||
| 159 | -//// $this->curlDelRoute(['new_route'=>$route]); | ||
| 160 | -// $this->model->edit(['route'=>$route],['id'=>$id]); | 158 | + $route = RouteMap::setRoute($route_array[$k], RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']); |
| 159 | +// $this->curlDelRoute(['new_route'=>$route]); | ||
| 160 | + $this->model->edit(['route'=>$route],['id'=>$id]); | ||
| 161 | } | 161 | } |
| 162 | } | 162 | } |
| 163 | }catch (\Exception $e){ | 163 | }catch (\Exception $e){ |
-
请 注册 或 登录 后发表评论