游戏查询联动

master
zhanglingsheng 5 years ago
parent ae66cf5008
commit 6ddf42181c

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

Loading…
Cancel
Save