优化区服预告区服选择

master
chenzhi 5 years ago
parent ff46ab04ca
commit a5c926b2cd

@ -262,13 +262,9 @@ class ServerNoticeController extends ThinkController {
$game_map = []; $game_map = [];
if ($game_name) { if ($game_name) {
$game_map['relation_game_name'] = $game_name; $game_map['relation_game_name'] = $game_name;
}else {
$this->AjaxReturn([]);
} }
if ($sdk_version) { if ($sdk_version) {
$map['server_version'] = $game_map['sdk_version'] = $sdk_version; $map['server_version'] = $game_map['sdk_version'] = $sdk_version;
}else {
$this->AjaxReturn([]);
} }
$game = M("Game", 'tab_')->where($game_map)->getField('id', true); $game = M("Game", 'tab_')->where($game_map)->getField('id', true);

Loading…
Cancel
Save