|
|
@ -1076,19 +1076,20 @@ class TimingController extends AdminController {
|
|
|
|
$group_config = json_decode($group_config['market_percentage'],true);
|
|
|
|
$group_config = json_decode($group_config['market_percentage'],true);
|
|
|
|
$month = date("m",strtotime($value['pay_time']));
|
|
|
|
$month = date("m",strtotime($value['pay_time']));
|
|
|
|
$yes = date("Y",strtotime($value['pay_time']));
|
|
|
|
$yes = date("Y",strtotime($value['pay_time']));
|
|
|
|
|
|
|
|
|
|
|
|
$where =[];
|
|
|
|
$where =[];
|
|
|
|
|
|
|
|
|
|
|
|
if ($group_config['time'] == 1) {
|
|
|
|
if ($group_config['time'] == 1) {
|
|
|
|
// var_dump($month);die();
|
|
|
|
|
|
|
|
if ($month == '07') {
|
|
|
|
if ($month == '07') {
|
|
|
|
$where = [$yes.'-'.'01',$yes.'-'.'02',$yes.'-'.'03'];
|
|
|
|
|
|
|
|
} elseif($month == '10') {
|
|
|
|
|
|
|
|
$where = [$yes.'-'.'04',$yes.'-'.'05',$yes.'-'.'06'];
|
|
|
|
$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'];
|
|
|
|
$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) {
|
|
|
|
} elseif($group_config['time'] == 2) {
|
|
|
|