From a988e3f8fcc667fa426e1544280c8275648cd04f Mon Sep 17 00:00:00 2001 From: chenzhi Date: Tue, 7 Sep 2021 11:34:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=87=AA=E5=8A=A8=E5=8F=91?= =?UTF-8?q?=E6=94=BE=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/TimingController.class.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) 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) {