From 692f4bf77e374616196d8a34636a08702f106751 Mon Sep 17 00:00:00 2001 From: liaofei <136327134@qq.com> Date: Thu, 20 Apr 2023 18:09:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/services/system/SystemCrudServices.php | 8 +++++++- crmeb/config/app.php | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) 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 ];