@ -1191,18 +1195,21 @@ class PromoteCompanyController extends ThinkController
}
//获取游戏基础信息
protected function getGameInfo($game_ids){
$gameinfo = [];
$dbres = M("Game","tab_")->where("id in ($game_ids)")->field("relation_game_id,relation_game_name,game_type_name")->select();
$dbres = M("Game","tab_")->where("relation_game_id in ($game_ids)")->field("relation_game_id,relation_game_name,game_type_name")->group("relation_game_id")->select();
foreach($dbres as $k=>$v){
$gameinfo[$v['relation_game_id']] = $v;
}
return $gameinfo;
}
//无游戏id获取比例
protected function noGameidsGetPromote($company_id){
}
//普通游戏id转唯一游戏id
protected function changeGameidToRelationGameid($ids)