|
@@ -39,6 +39,7 @@ class BlogLogic extends BaseLogic |
|
@@ -39,6 +39,7 @@ 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;
|
|
42
|
$id = $this->model->addReturnId($this->param);
|
43
|
$id = $this->model->addReturnId($this->param);
|
|
43
|
}
|
44
|
}
|
|
44
|
$route = RouteMap::setRoute($this->param['url'], RouteMap::SOURCE_BLOG, $id, $this->user['project_id']);
|
45
|
$route = RouteMap::setRoute($this->param['url'], RouteMap::SOURCE_BLOG, $id, $this->user['project_id']);
|