diff --git a/Application/Admin/Controller/TimingController.class.php b/Application/Admin/Controller/TimingController.class.php index 9e1a14f25..0bc388bcd 100644 --- a/Application/Admin/Controller/TimingController.class.php +++ b/Application/Admin/Controller/TimingController.class.php @@ -1076,19 +1076,20 @@ class TimingController extends AdminController { $group_config = json_decode($group_config['market_percentage'],true); $month = date("m",strtotime($value['pay_time'])); $yes = date("Y",strtotime($value['pay_time'])); - $where =[]; - + if ($group_config['time'] == 1) { -// var_dump($month);die(); if ($month == '07') { - $where = [$yes.'-'.'01',$yes.'-'.'02',$yes.'-'.'03']; - } elseif($month == '10') { $where = [$yes.'-'.'04',$yes.'-'.'05',$yes.'-'.'06']; - } elseif($month == '04') { + } + if($month == '10') { + $where = [$yes.'-'.'07',$yes.'-'.'08',$yes.'-'.'09']; + } + if($month == '04') { + $where = [$yes.'-'.'01',$yes.'-'.'02',$yes.'-'.'03']; + } + if($month == '01') { $where = [($yes-1).'-'.'10',($yes-1).'-'.'11',($yes-1).'-'.'12']; - } elseif($month == '01') { - $where = [($yes-1).'-'.'07',($yes-1).'-'.'08',($yes-1).'-'.'09']; } } elseif($group_config['time'] == 2) {