diff --git a/app/admin/controller/addon/Addons.php b/app/admin/controller/addon/Addons.php index d471916..c8141a2 100644 --- a/app/admin/controller/addon/Addons.php +++ b/app/admin/controller/addon/Addons.php @@ -1,5 +1,5 @@ value('id'); return json(['code'=>-1,'msg'=> 'is_nav菜单项目设置错误']); } + // 开启关闭的父ID状态 + $pidStatus = AuthRule::where('id', $pid)->value('status'); + if(!$pidStatus) { + AuthRule::update(['status' => 1, 'id' => $pid]); + } + // 安装菜单 $menu_arr[] = $menu['menu']; $this->addAddonMenu($menu_arr, (int)$pid,1); } diff --git a/app/admin/controller/content/Forum.php b/app/admin/controller/content/Forum.php index 813779e..9727434 100644 --- a/app/admin/controller/content/Forum.php +++ b/app/admin/controller/content/Forum.php @@ -1,5 +1,5 @@ scene('Artadd')->check($data); diff --git a/app/admin/controller/content/Tag.php b/app/admin/controller/content/Tag.php index 2ddd48a..1bc2c2c 100644 --- a/app/admin/controller/content/Tag.php +++ b/app/admin/controller/content/Tag.php @@ -8,8 +8,9 @@ * @FilePath: \TaoLer\app\admin\controller\Tag.php * Copyright (c) 2020~2022 https://www.aieok.com All rights reserved. */ -declare(strict_types=1); -namespace app\admin\controller; +declare(strict_types=1); + +namespace app\admin\controller\content; use app\common\controller\AdminController; use think\facade\View; diff --git a/app/admin/validate/.gitignore b/app/admin/validate/.gitignore new file mode 100644 index 0000000..4ee09dd --- /dev/null +++ b/app/admin/validate/.gitignore @@ -0,0 +1 @@ +/addons \ No newline at end of file diff --git a/app/admin/view/content/forum/add.html b/app/admin/view/content/forum/add.html index 7ed8a40..dd75fbb 100644 --- a/app/admin/view/content/forum/add.html +++ b/app/admin/view/content/forum/add.html @@ -2,7 +2,7 @@
-