|
|
|
@ -1563,6 +1563,7 @@ class TimingController extends AdminController {
|
|
|
|
|
|
|
|
|
|
echo date("Y-m-d H:i:s")."----------------------商务奖金计算----------------------\n";
|
|
|
|
|
|
|
|
|
|
// dump($this->businessAffairRatio(3471300));die();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!$_REQUEST['time']) {
|
|
|
|
@ -1618,23 +1619,24 @@ class TimingController extends AdminController {
|
|
|
|
|
|
|
|
|
|
foreach($data as $key => $value) {
|
|
|
|
|
|
|
|
|
|
$month_bonus_pool += $this->businessAffairRatio($value['pay_amount']);
|
|
|
|
|
$month_bonus_pool += $value['pay_amount'];
|
|
|
|
|
|
|
|
|
|
$quarter_bonus_pool = $this->businessAffairRatio($value['pay_amount']);
|
|
|
|
|
$quarter_bonus_pool = $value['pay_amount'];
|
|
|
|
|
|
|
|
|
|
if ($is_hav) {
|
|
|
|
|
for($i = (($value['month']%3)?(($value['month']%3)-1):2); $i > 0; $i--) {
|
|
|
|
|
|
|
|
|
|
$date = date("Y-m",strtotime($value['year'].'-'.(($value['month']-$i)>0?($value['month']-$i):($value['month']-$i+12))));
|
|
|
|
|
dump($date);
|
|
|
|
|
|
|
|
|
|
$quarter_bonus_pool +=
|
|
|
|
|
$this->businessAffairRatio($handleData[$date.$value['game_belong_id'].$value['relation_game_id']]['pay_amount']);
|
|
|
|
|
|
|
|
|
|
$quarter_bonus_pool += $handleData[$date.$value['game_belong_id'].$value['relation_game_id']]['pay_amount'];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$month_bonus_pool = $this->businessAffairRatio($month_bonus_pool);
|
|
|
|
|
$quarter_bonus_pool = $this->businessAffairRatio($quarter_bonus_pool);
|
|
|
|
|
|
|
|
|
|
foreach ($data as $key => $value){
|
|
|
|
|
|
|
|
|
|