master
zhanglingsheng 5 years ago
parent 2f81246d6e
commit 8f75d0f450

@ -553,7 +553,12 @@ function getGameByName($game_name=null, $sdk_version=null)
$map['sdk_version'] = $sdk_version;
}
$result = D("Game")->where($map)->select();
return $result;
if(empty($result))
{
return [['id' => -1]];
}else{
return $result;
}
}
function getTopPromote($promote_id)

@ -217,14 +217,6 @@
layer.msg('时间间隔不能超过31天请重新选择日期');
return false;
}
var game_name = $("#game_name").val();
var sdk_version = $("#sdk_version").val();
var server_name = $("#server_name").val();
console.log(server_name)
if(game_name != '' && server_name == '') {
layer.msg('请选择区服');
return false;
}
var url = $(this).attr('url');
var query = $('.jssearch').find('input').serialize();
query += "&" + $('.jssearch').find('select').serialize();

Loading…
Cancel
Save