master
yulingwei 5 years ago
parent e622b0a81e
commit b9bc2a7162

@ -25,8 +25,12 @@ class GameTypeController extends ThinkController {
if(isset($request['status_show'])){
if($request['status_show']!='all'){
$extend['status_show'] = $request['status_show'];
} else {
unset($extend['status_show']);
}
unset($request['status_show']);
} else {
unset($extend['status_show']);
}
$this->m_title = '游戏类型';
@ -40,6 +44,8 @@ class GameTypeController extends ThinkController {
if(isset($request['status_show'])){
if($request['status_show']!='all'){
$extend['status'] = $request['status_show'];
} else {
unset($extend['status']);
}
unset($request['status_show']);
}

@ -88,7 +88,7 @@ class GiftbagController extends ThinkController {
$map['sdk_version'] = $_REQUEST['sdk_version'];
$game_ids = M('game','tab_')->field('id')->where($map)->select();
$game_ids = array_column($game_ids,'id');
$extend['sdk_version'] = ['in',$game_ids];
$extend['game_id'] = ['in',$game_ids];
unset($_REQUEST['sdk_version']);
}
}

@ -63,6 +63,9 @@ unset($_REQUEST['parent_id']);
$map['ba_id']=$_REQUEST['admin_id'];
}
}
if (I('status') || I('status', -1) == 0) {
$map['status'] = I('status');
}
if (I("promote_level")) {
$map['level'] = I("promote_level");
}

@ -39,7 +39,7 @@
<!--显示状态搜索-->
<div class="input-list">
<select name="status_show">
<option value="all">显示状态</option>
<option value="">显示状态</option>
<option value="1">已开启</option>
<option value="0">已关闭</option>
</select>

Loading…
Cancel
Save