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