优化自动发放逻辑

master
chenzhi 3 years ago
parent 96b72cbc33
commit a988e3f8fc

@ -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) {

Loading…
Cancel
Save