update app/controller/admin/Base.php.

This commit is contained in:
2020-04-20 23:22:24 +08:00
committed by Gitee
parent 989b3a85e4
commit 12adc5e165

View File

@@ -160,7 +160,7 @@ class Base extends BaseC {
// 是否开发者模式
$where['is_dev'] = 0;
}
$row = Menu::where($where)->order('sort asc')->field('id,title,url,icon,'' as style')->select();
$row = Menu::where($where)->order('sort asc')->field("id,title,url,icon,'' as style")->select();
foreach ($row as $key => $value) {
//此处用来做权限判断
if (!IS_ROOT && !$this->checkRule(substr($value['url'], 1), 2, null)) {