作者 lyh

gx

... ... @@ -78,7 +78,7 @@ class ComController extends BaseController
$info['role_menu'] = trim($info['role_menu'],',');
$lists = $projectMenuModel->where(['status'=>0,'is_role'=>0])->whereIn('id',explode(',',$info['role_menu']))->get();
}else{
$lists = $projectMenuModel->where(['status'=>0,'is_role'=>0])->get();
$lists = $projectMenuModel->where(['is_role'=>0])->get();
}
$lists = $lists->toArray();
$menu = array();
... ...
... ... @@ -70,7 +70,7 @@ class MenuLogic extends BaseLogic
public function getAllMenu(){
$map = [
'type' => 0,
'status' => Menu::STATUS_NORMAL,
// 'status' => Menu::STATUS_NORMAL,
];
$lists = $this->model->list($map);
$menu = array();
... ...