Browse Source

页面权限3

master
wanghongjun 4 weeks ago
parent
commit
34da54618b
  1. 6
      app/Http/Controllers/Admin/BaseController.php

6
app/Http/Controllers/Admin/BaseController.php

@ -80,7 +80,11 @@ class BaseController extends Controller
$authArr[$authKey] = 1;
}
$key = explode('.',$authKey);
$newArr[$key[1]] = $authArr[$authKey];
if (isset($newArr[$key[1]])) {
$newArr[$key[1] . '_child'] = $authArr[$authKey];
} else {
$newArr[$key[1]] = $authArr[$authKey];
}
}
return $newArr;
}

Loading…
Cancel
Save