|
@@ -62,8 +62,9 @@ class KeywordLogic extends BaseLogic |
|
@@ -62,8 +62,9 @@ class KeywordLogic extends BaseLogic |
|
62
|
$this->fail('当前title已存在');
|
62
|
$this->fail('当前title已存在');
|
|
63
|
}
|
63
|
}
|
|
64
|
//TODO::不能修改路由
|
64
|
//TODO::不能修改路由
|
|
|
|
65
|
+ $route = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_PRODUCT_KEYWORD, $this->param['id'], $this->user['project_id']);
|
|
|
|
66
|
+ $this->param['route'] = $route;
|
|
65
|
$this->model->edit($this->param,['id'=>$this->param['id']]);
|
67
|
$this->model->edit($this->param,['id'=>$this->param['id']]);
|
|
66
|
- $route = RouteMap::getRoute(RouteMap::SOURCE_PRODUCT_KEYWORD,$this->param['id'], $this->user['project_id']);
|
|
|
|
67
|
$data = ['id'=>$this->param['id']];
|
68
|
$data = ['id'=>$this->param['id']];
|
|
68
|
}else{
|
69
|
}else{
|
|
69
|
$info = $this->model->read(['title'=>$this->param['title']]);
|
70
|
$info = $this->model->read(['title'=>$this->param['title']]);
|