作者 lyh

扩展模块不允许使用默认路由

... ... @@ -75,6 +75,9 @@ class CustomModuleLogic extends BaseLogic
if(!isset($param['id']) || empty($param['id'])){
$param['project_id'] = $this->param['project_id'];
}
if(in_array($param['route'],['blogs','news','top_blog','blog','product','products'])){
$this->fail('不允许使用项目默认模块路由');
}
return $this->success($param);
}
... ...