|
@@ -13,13 +13,13 @@ class Index extends Auth
|
|
|
|
|
|
$bd = Db::name('org')->where('id',$this->orgId)->value('bd_auth');
|
|
|
|
|
|
- $dbAuth = $bd?explode(',',$bd):[];
|
|
|
+ $bdAuth = $bd?explode(',',$bd):[];
|
|
|
|
|
|
$mapMenu[] = ['enable','=',1];
|
|
|
$mapMenu[] = ['del','=',0];
|
|
|
$mapMenu[] = ['is_btn','=',0];
|
|
|
- if($dbAuth){
|
|
|
- $mapMenu[] = ['id','in',$dbAuth];
|
|
|
+ if($bdAuth){
|
|
|
+ $mapMenu[] = ['id','in',$bdAuth];
|
|
|
}else{
|
|
|
$mapMenu[] = ['id','in',[148,149,150,151,257]];
|
|
|
}
|
|
@@ -37,7 +37,7 @@ class Index extends Auth
|
|
|
$arr[] = $v;
|
|
|
}
|
|
|
|
|
|
- $curUrl = !empty($lists)?$lists[0]['url']:'';
|
|
|
+ $curUrl = !empty($lists[0])?$lists[0]['url']:'';
|
|
|
|
|
|
$this->assign('menus',$arr);
|
|
|
|