外团推广功能提交

master
zhengyongxing 4 years ago
parent f569747948
commit 4e8cb8dfe1

@ -1370,7 +1370,14 @@ class CompanyStatementSetController extends Controller {
$tratio += $company_ratio;
}elseif($type == 0){
// $tratio =$this->getTurnoverRatio($p_info['all_pay_amount'],$tmp_game_ratio['ratio'],$tmp_game_ratio['turnover_ratio']);
$tratio = $tmp_game_ratio['ratio'];
// $tratio = $tmp_game_ratio['ratio'];
$turnover_type = $this->getTurnoverType($v['relation_game_id'],$k,$begintime,$endtime);
if ($turnover_type == 2) {
$tratio =$this->getTurnoverRatio($p_info['all_pay_amount'],$tmp_game_ratio['ratio'],$tmp_game_ratio['turnover_ratio']);
} else {
$tratio = $tmp_game_ratio['ratio'];
}
}else{
//补点
$tratio1 =$this->getTurnoverRatio($p_info['all_pay_amount'],$tmp_game_ratio['ratio'],$tmp_game_ratio['turnover_ratio']);
@ -1402,8 +1409,16 @@ class CompanyStatementSetController extends Controller {
$tratio =$this->getTurnoverRatio($p_info['all_pay_amount'],$tmp_game_ratio['ratio'],$tmp_game_ratio['turnover_ratio']);
$tratio += $company_ratio;
}elseif($type == 0){
// $tratio =$this->getTurnoverRatio($p_info['all_pay_amount'],$tmp_game_ratio['ratio'],$tmp_game_ratio['turnover_ratio']);
$tratio = $tmp_game_ratio['ratio'];
$turnover_type = $this->getTurnoverType($v['relation_game_id'],$k,$begintime,$endtime);
if ($turnover_type == 2) {
$tratio =$this->getTurnoverRatio($p_info['all_pay_amount'],$tmp_game_ratio['ratio'],$tmp_game_ratio['turnover_ratio']);
} else {
$tratio = $tmp_game_ratio['ratio'];
}
}else{
//补点
$tratio1 =$this->getTurnoverRatio($p_info['all_pay_amount'],$tmp_game_ratio['ratio'],$tmp_game_ratio['turnover_ratio']);

Loading…
Cancel
Save