|
...
|
...
|
@@ -417,6 +417,8 @@ class CustomModuleContentLogic extends BaseLogic |
|
|
|
$info = $this->model->read(['id'=>$this->param['id']]);
|
|
|
|
$param = $this->setContentParams($info);
|
|
|
|
$save_id = $this->model->insertGetId($param);
|
|
|
|
$route = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_MODULE, $save_id, $this->user['project_id']);
|
|
|
|
$this->edit(['route' => $route], ['id' => $save_id]);
|
|
|
|
$this->copyTemplate($this->param['id'],$info['project_id'],$save_id,$info['module_id']);
|
|
|
|
return $this->success(['id'=>$save_id]);
|
|
|
|
}
|
...
|
...
|
|