|
|
|
@ -72,16 +72,17 @@ class PromoteCompanyController extends ThinkController
|
|
|
|
|
//获取会长id
|
|
|
|
|
$promoteids = implode(',', array_column($promoteres, 'id'));
|
|
|
|
|
//获取游戏比例
|
|
|
|
|
$gameradiores = M("PromoteGameRatio","tab_")
|
|
|
|
|
->alias("pg")
|
|
|
|
|
->field("pg.ratio,pg.relation_game_id,pg.turnover_ratio,pg.game_id,pg.promote_id,ga.relation_game_name,ga.game_type_name")
|
|
|
|
|
->join("tab_game ga ON pg.game_id = ga.id")
|
|
|
|
|
->where(array(
|
|
|
|
|
"status"=>1,
|
|
|
|
|
"promote_id"=>["in",$promoteids]
|
|
|
|
|
))
|
|
|
|
|
->group("relation_game_id,promote_id")
|
|
|
|
|
->select();
|
|
|
|
|
// $gameradiores = M("PromoteGameRatio","tab_")
|
|
|
|
|
// ->alias("pg")
|
|
|
|
|
// ->field("pg.ratio,pg.relation_game_id,pg.turnover_ratio,pg.game_id,pg.promote_id,ga.relation_game_name,ga.game_type_name")
|
|
|
|
|
// ->join("tab_game ga ON pg.game_id = ga.id")
|
|
|
|
|
// ->where(array(
|
|
|
|
|
// "status"=>1,
|
|
|
|
|
// "promote_id"=>["in",$promoteids]
|
|
|
|
|
// ))
|
|
|
|
|
// ->group("relation_game_id,promote_id")
|
|
|
|
|
// ->select();
|
|
|
|
|
$gameradiores = [];
|
|
|
|
|
//比例数据处理
|
|
|
|
|
$gameradiotemp = array();
|
|
|
|
|
foreach($gameradiores as $k=>$v){
|
|
|
|
|