|
...
|
...
|
@@ -194,8 +194,8 @@ class CustomModuleContentLogic extends BaseLogic |
|
|
|
}
|
|
|
|
if($is_upgrade == 0 || $six_read == 1) {
|
|
|
|
$this->param['route'] = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_MODULE, $this->param['id'], $this->user['project_id']);
|
|
|
|
$this->editRoute($this->param['id'],$this->param['route']);
|
|
|
|
}
|
|
|
|
$this->editRoute($this->param['id'],$this->param['route']);
|
|
|
|
$rs = $this->model->edit($this->param,['id'=>$this->param['id']]);
|
|
|
|
if($rs === false){
|
|
|
|
$this->fail('系统错误,请连续管理员');
|
|
...
|
...
|
@@ -240,10 +240,8 @@ class CustomModuleContentLogic extends BaseLogic |
|
|
|
{
|
|
|
|
//生成一条删除路由记录
|
|
|
|
$info = $this->model->read(['id' => $id], ['id', 'route']);
|
|
|
|
if ($info['route'] != $route) {
|
|
|
|
$this->addUpdateNotify(RouteMap::SOURCE_MODULE,$route);
|
|
|
|
$this->curlDelRoute(['route'=>$info['route'],'new_route'=>$route]);
|
|
|
|
}
|
|
|
|
$this->addUpdateNotify(RouteMap::SOURCE_MODULE,$route);
|
|
|
|
$this->curlDelRoute(['route'=>$info['route'],'new_route'=>$route]);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|