diff --git a/Application/Admin/Controller/TimingController.class.php b/Application/Admin/Controller/TimingController.class.php index de080719f..e2d08f314 100644 --- a/Application/Admin/Controller/TimingController.class.php +++ b/Application/Admin/Controller/TimingController.class.php @@ -1199,7 +1199,7 @@ class TimingController extends AdminController { ->join("left join tab_promote_company company on promote.company_id = company.id") ->join("left join ({$data}) auth on auth.uid=market_admin_id") ->where(['develop_type'=>['egt',1],'group_id'=>['in',['11','12','21']]]) -// ->where(['company_id'=>278,'spend.promote_id'=>3917,'relation_game_id'=>213]) +// ->where(['company_id'=>43,'spend.promote_id'=>1498,'relation_game_id'=>191]) // ->order("is_settlement ASC") ->select(); @@ -1235,6 +1235,8 @@ class TimingController extends AdminController { ->order("begin_time ASC") ->select(); +// dump($company_belong_game); + $promote_data[$key]['promote_amount'] = 0; foreach ($company_belong_game as $ck => $cv) { @@ -1294,10 +1296,10 @@ class TimingController extends AdminController { } - if ($ck > 1) { -// echo 3; - if (($cv['begin_time'] - $company_belong_game[$ck-1]['end_time'] + 86399) > 1) { + if ($ck > 0) { + if (($cv['begin_time'] - $company_belong_game[$ck-1]['end_time'] + 86399) > 1) { +// echo 3; $promote_data[$key]['promote_amount'] += $this->getCompanyGameRadio($value['admin_id'],$value['promote_id'],$value['company_id'],$value['relation_game_id'],$company_belong_game[$ck-1]['end_time'] + 86400,$cv['begin_time']-1,$value['pay_amount']); } }