菜单隐藏

master
zhanglingsheng 5 years ago
parent d7d3958f5b
commit 95bfd89418

@ -171,12 +171,17 @@ class GameController extends BaseController{
unset($menus[$k]); unset($menus[$k]);
continue; continue;
} }
if ($data['game_id'] == 78) { if(!empty($v['game_status'])) {
if ($v['name'] == 'gift' || $v['name'] == 'suppersign') { $game_status = explode(',', $v['game_status']);
unset($menus[$k]); if(in_array($data['game_id'], $game_status)) {
continue; unset($menus[$k]);
} continue;
}
} }
if(isset($v['status']) && $v['status'] == 0) {
unset($menus[$k]);
continue;
}
$menus[$k]['icon'] = (substr($v['icon'], 0, 7) == "http://" || substr($v['icon'], 0, 8) == "https://" ) ? $v['icon'] : $menus[$k]['icon'] = (substr($v['icon'], 0, 7) == "http://" || substr($v['icon'], 0, 8) == "https://" ) ? $v['icon'] :
C('ADMIN_DOMAIN') . $v['icon']; C('ADMIN_DOMAIN') . $v['icon'];
// die; // die;
@ -214,12 +219,17 @@ class GameController extends BaseController{
unset($personalMenu[$k]); unset($personalMenu[$k]);
continue; continue;
} }
if ($data['game_id'] == 78) { if(!empty($v['game_status'])) {
if ($v['name'] == 'gift' || $v['name'] == 'balance') { $game_status = explode(',', $v['game_status']);
unset($personalMenu[$k]); if(in_array($data['game_id'], $game_status)) {
continue; unset($personalMenu[$k]);
} continue;
}
} }
if(isset($v['status']) && $v['status'] == 0) {
unset($personalMenu[$k]);
continue;
}
$personalMenu[$k]['icon'] = (substr($v['icon'], 0, 7) == "http://" || substr($v['icon'], 0, 8) == "https://" ) ? $v['icon'] : $personalMenu[$k]['icon'] = (substr($v['icon'], 0, 7) == "http://" || substr($v['icon'], 0, 8) == "https://" ) ? $v['icon'] :
C('ADMIN_DOMAIN') . $v['icon']; C('ADMIN_DOMAIN') . $v['icon'];
// die; // die;

Loading…
Cancel
Save