|
|
@ -263,6 +263,7 @@ class CompanyStatementSetController extends Controller {
|
|
|
|
$tratio1 = getGameCpRadio($game_id['id'],$va['pay_money'],true);
|
|
|
|
$tratio1 = getGameCpRadio($game_id['id'],$va['pay_money'],true);
|
|
|
|
$tratio2 = getGameCpRadio($game_id['id'],$va['pay_money'],false);
|
|
|
|
$tratio2 = getGameCpRadio($game_id['id'],$va['pay_money'],false);
|
|
|
|
$tratio = $tratio1-$tratio2;
|
|
|
|
$tratio = $tratio1-$tratio2;
|
|
|
|
|
|
|
|
if($tratio <= 0){continue;}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -528,6 +529,7 @@ class CompanyStatementSetController extends Controller {
|
|
|
|
$tratio1 = getGamePromoteCompanyRadio($add_data['company_id'],$va['relation_game_id'],$endtime,$va['pay_amount'],true,$company_belong);;
|
|
|
|
$tratio1 = getGamePromoteCompanyRadio($add_data['company_id'],$va['relation_game_id'],$endtime,$va['pay_amount'],true,$company_belong);;
|
|
|
|
$tratio2 = getGamePromoteCompanyRadio($add_data['company_id'],$va['relation_game_id'],$endtime,$va['pay_amount'],false,$company_belong);
|
|
|
|
$tratio2 = getGamePromoteCompanyRadio($add_data['company_id'],$va['relation_game_id'],$endtime,$va['pay_amount'],false,$company_belong);
|
|
|
|
$tratio = $tratio1-$tratio2;
|
|
|
|
$tratio = $tratio1-$tratio2;
|
|
|
|
|
|
|
|
if($tratio <= 0){ continue;}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if($v['type'] == 2){
|
|
|
|
if($v['type'] == 2){
|
|
|
@ -766,17 +768,19 @@ class CompanyStatementSetController extends Controller {
|
|
|
|
$game['game_type_name'] = $this->getGameTypeName($va['relation_game_id']);
|
|
|
|
$game['game_type_name'] = $this->getGameTypeName($va['relation_game_id']);
|
|
|
|
|
|
|
|
|
|
|
|
if($type == 1){
|
|
|
|
if($type == 1){
|
|
|
|
$tratio = getGamePromoteCompanyRadio($add_data['company_id'],$va['relation_game_id'],$endtime,$va['pay_amount'],true,$company_belong);
|
|
|
|
$tratio = getGamePromoteCompanyRadio($v['id'],$va['relation_game_id'],$endtime,$va['pay_amount'],true,$company_belong);
|
|
|
|
}elseif($type == 0){
|
|
|
|
}elseif($type == 0){
|
|
|
|
$tratio = getGamePromoteCompanyRadio($add_data['company_id'],$va['relation_game_id'],$endtime,$va['pay_amount'],false,$company_belong);
|
|
|
|
$tratio = getGamePromoteCompanyRadio($v['id'],$va['relation_game_id'],$endtime,$va['pay_amount'],false,$company_belong);
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
//补点
|
|
|
|
//补点
|
|
|
|
$tratio1 = getGamePromoteCompanyRadio($add_data['company_id'],$va['relation_game_id'],$endtime,$va['pay_amount'],true,$company_belong);;
|
|
|
|
$tratio1 = getGamePromoteCompanyRadio($v['id'],$va['relation_game_id'],$endtime,$va['pay_amount'],true,$company_belong);;
|
|
|
|
$tratio2 = getGamePromoteCompanyRadio($add_data['company_id'],$va['relation_game_id'],$endtime,$va['pay_amount'],false,$company_belong);
|
|
|
|
$tratio2 = getGamePromoteCompanyRadio($v['id'],$va['relation_game_id'],$endtime,$va['pay_amount'],false,$company_belong);
|
|
|
|
$tratio = $tratio1-$tratio2;
|
|
|
|
$tratio = $tratio1-$tratio2;
|
|
|
|
|
|
|
|
if($tratio <= 0){
|
|
|
|
|
|
|
|
continue;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if($type == 2){
|
|
|
|
if($v['type'] == 2){
|
|
|
|
|
|
|
|
$game['increment_ratio']=$tratio;
|
|
|
|
$game['increment_ratio']=$tratio;
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
$game['ratio']=$tratio;
|
|
|
|
$game['ratio']=$tratio;
|
|
|
|