|
|
|
@ -118,24 +118,76 @@ class PartnerController extends ThinkController
|
|
|
|
|
|
|
|
|
|
// dd($cp_game_ratio_map);
|
|
|
|
|
$parseGameRadiores = array();//合作方分成比例
|
|
|
|
|
// foreach ($gameradiores as $key =>$val) {
|
|
|
|
|
// $val['row'] = 1;
|
|
|
|
|
// $val['my_ratio'] = 100 - $val['ratio'];
|
|
|
|
|
// if ($val['begin_total_amount'] == 0) {
|
|
|
|
|
// $val['name'] = '默认比例';
|
|
|
|
|
// if (isset($parseGameRadiores[$val['game_id']])) {
|
|
|
|
|
// $parseGameRadiores[$val['game_id']] = [];
|
|
|
|
|
// }
|
|
|
|
|
// } else {
|
|
|
|
|
// if($val['instanceof']=='1'){
|
|
|
|
|
// $val['name']="月流水≥".$val['begin_total_amount'];
|
|
|
|
|
// }else{
|
|
|
|
|
// $val['name']="月流水>".$val['begin_total_amount'];
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// $val['ratio'] = floatval($val['ratio']);
|
|
|
|
|
// $parseGameRadiores[$val['game_id']][] = $val;
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
foreach ($gameradiores as $key =>$val) {
|
|
|
|
|
$val['row'] = 1;
|
|
|
|
|
$val['my_ratio'] = 100 - $val['ratio'];
|
|
|
|
|
if ($val['begin_total_amount'] == 0) {
|
|
|
|
|
$val['name'] = '默认比例';
|
|
|
|
|
if ($gameradiores[$key+1]['begin_total_amount']==0) {
|
|
|
|
|
$val['name'] = "0.00≤月流水≤∞";
|
|
|
|
|
} else {
|
|
|
|
|
$val['name']=$val['begin_total_amount']."≤月流水<".$gameradiores[$key+1]['begin_total_amount'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (isset($parseGameRadiores[$val['game_id']])) {
|
|
|
|
|
$parseGameRadiores[$val['game_id']] = [];
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if($val['instanceof']=='1'){
|
|
|
|
|
$val['name']="月流水≥".$val['begin_total_amount'];
|
|
|
|
|
|
|
|
|
|
if ($gameradiores[$key+1]['begin_total_amount']!=0) {
|
|
|
|
|
$val['name']=$val['begin_total_amount']."≤月流水<".$gameradiores[$key+1]['begin_total_amount'];
|
|
|
|
|
} else {
|
|
|
|
|
$val['name']=$val['begin_total_amount']."≤月流水≤∞";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// $val['name']="月流水≥".$val['begin_total_amount'];
|
|
|
|
|
}else{
|
|
|
|
|
$val['name']="月流水>".$val['begin_total_amount'];
|
|
|
|
|
|
|
|
|
|
if($gameradiores[$key+1]['begin_total_amount']!=0) {
|
|
|
|
|
|
|
|
|
|
if ($gameradiores[$key+1]['instanceof'] == '1') {
|
|
|
|
|
$val['name']=$val['begin_total_amount']."<月流水<".$gameradiores[$key+1]['begin_total_amount'];
|
|
|
|
|
} else {
|
|
|
|
|
$val['name']=$val['begin_total_amount']."≤月流水<".$gameradiores[$key+1]['begin_total_amount'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
if ($gameradiores[$key+1]['instanceof'] == '1') {
|
|
|
|
|
$val['name']=$val['begin_total_amount']."<月流水≤∞";
|
|
|
|
|
} else {
|
|
|
|
|
$val['name']=$val['begin_total_amount']."≤月流水≤∞";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// $val['name']="月流水>".$val['begin_total_amount'];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$val['ratio'] = floatval($val['ratio']);
|
|
|
|
|
$parseGameRadiores[$val['game_id']][] = $val;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$myGameRadiores = $parseGameRadiores;//我方分成比例
|
|
|
|
|
foreach ($myGameRadiores as $key => &$val) {
|
|
|
|
|
foreach ($val as $k => &$v) {
|
|
|
|
|