Merge pull request 'feature/statement_warning_change' (#498) from feature/statement_warning_change into master

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/498
master
廖金灵 3 years ago
commit f0e29f17e1

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