|
...
|
...
|
@@ -186,9 +186,12 @@ class CustomModuleContentLogic extends BaseLogic |
|
|
|
* @time :2023/12/7 15:04
|
|
|
|
*/
|
|
|
|
public function contentEdit(){
|
|
|
|
$route = RouteMap::setRoute($this->param['route'], RouteMap::SOURCE_MODULE,
|
|
|
|
$this->param['id'], $this->user['project_id']);
|
|
|
|
$this->editRoute($this->param['id'],$route);
|
|
|
|
$is_upgrade = $this->param['is_upgrade'] ?? 0;//5.0数据 1:6.0
|
|
|
|
$six_read = $this->param['six_read'] ?? 0;//是否按6.0显示
|
|
|
|
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']);
|
|
|
|
$rs = $this->model->edit($this->param,['id'=>$this->param['id']]);
|
|
|
|
if($rs === false){
|
|
|
|
$this->fail('系统错误,请连续管理员');
|
...
|
...
|
|