|
...
|
...
|
@@ -531,7 +531,7 @@ class CustomTemplateLogic extends BaseLogic |
|
|
|
$info = $this->model->read(['id'=>$this->param['id']]);
|
|
|
|
$param = $this->setCustomTemplateParams($info);
|
|
|
|
$save_id = $this->model->insertGetId($param);
|
|
|
|
$route = RouteMap::setRoute($param['url'], RouteMap::SOURCE_PRODUCT, $save_id, $this->user['project_id']);
|
|
|
|
$route = RouteMap::setRoute($param['url'], RouteMap::SOURCE_PAGE, $save_id, $this->user['project_id']);
|
|
|
|
$this->model->edit(['route'=>$route],['id'=>$save_id]);
|
|
|
|
return $this->success(['id'=>$save_id]);
|
|
|
|
}
|
...
|
...
|
|