diff --git a/crmeb/app/services/system/SystemCrudServices.php b/crmeb/app/services/system/SystemCrudServices.php index ce16467eb..e9404be29 100644 --- a/crmeb/app/services/system/SystemCrudServices.php +++ b/crmeb/app/services/system/SystemCrudServices.php @@ -283,7 +283,7 @@ class SystemCrudServices extends BaseServices $dataMenu = [ 'pid' => $data['pid'], 'menu_name' => $data['menuName'], - 'menu_path' => '/' . $routeName , + 'menu_path' => '/' . $routeName, 'auth_type' => 1, 'is_show' => 1, 'is_del' => 0, @@ -303,6 +303,7 @@ class SystemCrudServices extends BaseServices 'app_name' => 'adminapi', 'cate_id' => $cateId, 'unique_auth' => '', + 'auth_type' => 2, 'add_time' => date('Y-m-d H:i:s') ], [ @@ -312,6 +313,7 @@ class SystemCrudServices extends BaseServices 'app_name' => 'adminapi', 'cate_id' => $cateId, 'unique_auth' => Str::snake($tableName) . '-add', + 'auth_type' => 2, 'add_time' => date('Y-m-d H:i:s') ], [ @@ -321,6 +323,7 @@ class SystemCrudServices extends BaseServices 'app_name' => 'adminapi', 'cate_id' => $cateId, 'unique_auth' => '', + 'auth_type' => 2, 'add_time' => date('Y-m-d H:i:s') ], [ @@ -330,6 +333,7 @@ class SystemCrudServices extends BaseServices 'app_name' => 'adminapi', 'cate_id' => $cateId, 'unique_auth' => '', + 'auth_type' => 2, 'add_time' => date('Y-m-d H:i:s') ], [ @@ -339,6 +343,7 @@ class SystemCrudServices extends BaseServices 'app_name' => 'adminapi', 'cate_id' => $cateId, 'unique_auth' => '', + 'auth_type' => 2, 'add_time' => date('Y-m-d H:i:s') ], [ @@ -348,6 +353,7 @@ class SystemCrudServices extends BaseServices 'app_name' => 'adminapi', 'cate_id' => $cateId, 'unique_auth' => '', + 'auth_type' => 2, 'add_time' => date('Y-m-d H:i:s') ], ]; diff --git a/crmeb/config/app.php b/crmeb/config/app.php index 09848e994..d6061b29d 100644 --- a/crmeb/config/app.php +++ b/crmeb/config/app.php @@ -53,5 +53,5 @@ return [ //后台前端模板根路径 'admin_template_path' => dirname(app()->getRootPath()) . DS . 'template' . DS . 'admin' . DS . 'src' . DS, //在保存crud的是否是否直接生成文件 - 'crud_make' => false + 'crud_make' => true ];