From e5b6af3771d40e67958b63bdd7873ecf652c14bf Mon Sep 17 00:00:00 2001 From: tping Date: Wed, 3 Feb 2021 12:09:56 +0800 Subject: [PATCH] 1 --- .../Home/Controller/DownloadController.class.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Application/Home/Controller/DownloadController.class.php b/Application/Home/Controller/DownloadController.class.php index 761c20785..3bec61a7b 100644 --- a/Application/Home/Controller/DownloadController.class.php +++ b/Application/Home/Controller/DownloadController.class.php @@ -1481,19 +1481,19 @@ class DownloadController extends BaseController - if (!empty(I('begtime')) && empty(I('endtime'))) { + if (!empty(I('begtime')) && empty(I('endtime'))) { $map['tab_spend.spend_time'] = ['egt', strtotime(I('begtime'))]; } elseif (empty(I('begtime')) && !empty(I('endtime'))) { $map['tab_spend.spend_time'] = ['elt', strtotime(I('endtime')) + 86399]; } elseif (!empty(I('begtime')) && !empty(I('endtime'))) { $map['tab_spend.spend_time'] = ['between', [strtotime(I('begtime')), strtotime(I('endtime')) + 86399]]; }else { - $nowTime = date('Y-m-d'); - $initBegTime = date('Y-m-d', strtotime('-6 day', strtotime($nowTime))); - $initEndTime = date('Y-m-d'); - $initBegTime = strtotime($initBegTime); - $initEndTime = strtotime($initEndTime); - $map['tab_spend.spend_time'] = ['between',[$initBegTime,$initEndTime]]; +// $nowTime = date('Y-m-d'); +// $initBegTime = date('Y-m-d', strtotime('-6 day', strtotime($nowTime))); +// $initEndTime = date('Y-m-d'); +// $initBegTime = strtotime($initBegTime); +// $initEndTime = strtotime($initEndTime); +// $map['tab_spend.spend_time'] = ['between',[$initBegTime,$initEndTime]]; } if ($payedBegTime) {