作者 lyh

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

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