Browse Source

修复:个别环境后台登录时role报错

萤火科技 3 năm trước cách đây
mục cha
commit
0fc0a506cd
1 tập tin đã thay đổi với 2 bổ sung và 2 xóa
  1. 2 2
      app/store/service/store/Role.php

+ 2 - 2
app/store/service/store/Role.php

@@ -75,9 +75,9 @@ class Role extends BaseService
      * @param $menu
      * @return array
      */
-    private static function getActionEntitySet($menu)
+    private static function getActionEntitySet($menu): array
     {
-        if (!isset($menu['actions']) || empty($menu['actions'])) {
+        if (empty($menu['actions'])) {
             return [];
         }
         $actionEntitySet = [];