From: Alexander Smirnov Date: Thu, 11 Jul 2024 12:39:02 +0000 (+0300) Subject: Вернул параметр daysCnt 3 X-Git-Tag: 1.4~80^2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=0a74b5971b590bc56cd0749de53c8f4eeccbbb02;p=erp24_rep%2Fyii-erp24%2F.git Вернул параметр daysCnt 3 --- diff --git a/erp24/api1/views/cron/domru-cams.php b/erp24/api1/views/cron/domru-cams.php index aaecfa18..98e15b64 100644 --- a/erp24/api1/views/cron/domru-cams.php +++ b/erp24/api1/views/cron/domru-cams.php @@ -22,8 +22,8 @@ foreach($revers as $cam_id => $name) { } -$daysCnt = 2; -if (!empty($_GET["daysCnt"])) $daysCnt = (int)$_GET["daysCnt"]; +$daysCnt = 1; +if (!empty($_GET["daysCnt"])) $daysCnt = (int)$_GET["daysCnt"] - 1; $date1 = date('Y-m-d', strtotime("-$daysCnt day", time())); $date2 = date('Y-m-d');