From 089390376cea244f4527c0fb222bc5ebfb11dfbc Mon Sep 17 00:00:00 2001 From: chenzhi Date: Mon, 2 Aug 2021 09:18:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=91=A8=E4=B8=80=E5=AE=9A?= =?UTF-8?q?=E6=97=B6=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/MarketPerformanceSetController.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Controller/MarketPerformanceSetController.class.php b/Application/Admin/Controller/MarketPerformanceSetController.class.php index b0e40de65..dd410eab6 100644 --- a/Application/Admin/Controller/MarketPerformanceSetController.class.php +++ b/Application/Admin/Controller/MarketPerformanceSetController.class.php @@ -599,7 +599,9 @@ class MarketPerformanceSetController extends Controller { $dThisDay = date("w", $iThisMonthFirst); if ($dThisDay == '1') { $dFirstMonday = $iThisMonthFirst; - } else { + }else if($dThisDay < 1){ + $dFirstMonday = $iThisMonthFirst + 86400; + }else { //不是星期一先回到星期日 $iDays = 86400 * ($dThisDay * 1); //找出星期日的日期