|
|
|
@ -171,12 +171,17 @@ class GameController extends BaseController{
|
|
|
|
|
unset($menus[$k]);
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
if ($data['game_id'] == 78) {
|
|
|
|
|
if ($v['name'] == 'gift' || $v['name'] == 'suppersign') {
|
|
|
|
|
unset($menus[$k]);
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
if(!empty($v['game_status'])) {
|
|
|
|
|
$game_status = explode(',', $v['game_status']);
|
|
|
|
|
if(in_array($data['game_id'], $game_status)) {
|
|
|
|
|
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'] :
|
|
|
|
|
C('ADMIN_DOMAIN') . $v['icon'];
|
|
|
|
|
// die;
|
|
|
|
@ -214,12 +219,17 @@ class GameController extends BaseController{
|
|
|
|
|
unset($personalMenu[$k]);
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
if ($data['game_id'] == 78) {
|
|
|
|
|
if ($v['name'] == 'gift' || $v['name'] == 'balance') {
|
|
|
|
|
unset($personalMenu[$k]);
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
if(!empty($v['game_status'])) {
|
|
|
|
|
$game_status = explode(',', $v['game_status']);
|
|
|
|
|
if(in_array($data['game_id'], $game_status)) {
|
|
|
|
|
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'] :
|
|
|
|
|
C('ADMIN_DOMAIN') . $v['icon'];
|
|
|
|
|
// die;
|
|
|
|
|