From 249eeaba2376fc1c5997a1fad89628b2b2144e59 Mon Sep 17 00:00:00 2001 From: Aleksey Filippov Date: Sat, 4 May 2024 09:42:19 +0300 Subject: [PATCH] =?utf8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D0=BF?= =?utf8?q?=D0=BE=20=D0=B7=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=BA=D0=B5=20?= =?utf8?q?=D0=B4=D0=B0=D0=BD=D0=BD=D1=8B=D1=85=20=D0=B8=D0=B7=20=D0=90?= =?utf8?q?=D0=9C=D0=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/api1/views/cron/amo142.php | 9 ++------- erp24/modul/orders/delivery.php | 2 ++ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/erp24/api1/views/cron/amo142.php b/erp24/api1/views/cron/amo142.php index 71becc5..16071a4 100644 --- a/erp24/api1/views/cron/amo142.php +++ b/erp24/api1/views/cron/amo142.php @@ -8,11 +8,6 @@ include_once(dirname(__DIR__, 3) . "/inc/uni.php"); include_once(dirname(__DIR__, 3) . "/inc/uni2.php"); -if ($_GET["token_cloud"]!="iC04295J9HyD2H3GJF3btky") { - var_dump($_GET); - echo ' test 11 ' . time(); - exit('234'); -} // https://api.bazacvetov24.ru/cron/amo142/?token_cloud=iC04295J9HyD2H3GJF3btky @@ -188,7 +183,7 @@ $date1=time()-86400*$n; $date2=time()-86400*($n-1); //$date1=mktime(0,0,0,2,28,2022); //$date2=mktime(0,0,0,3,1,2022); -$limiter=25; +$limiter=1000; $status_amo=142; if(!empty($_REQUEST["limit"])) $limiter=intval($_REQUEST["limit"]); @@ -350,7 +345,7 @@ $delivery__date .='&filter[custom_fields_values][647935][from]='.$unix_delivery_ //print_r($deal0); - if (!array_key_exists("_embedded", $deal0)) { + if (empty($deal0) || !array_key_exists("_embedded", $deal0)) { echo "

"; echo print_r($deal0); echo ' ' . __FILE__ . ' ' . __LINE__ . ' '; diff --git a/erp24/modul/orders/delivery.php b/erp24/modul/orders/delivery.php index fa4e2cb..22bd97e 100644 --- a/erp24/modul/orders/delivery.php +++ b/erp24/modul/orders/delivery.php @@ -266,6 +266,8 @@ WHERE $where AND delivery_date <= NOW() order by delivery_date DESC, updated_at $data = $db::getRows("SELECT *, TO_CHAR(delivery_date, 'DD.MM.YYYY') as dated FROM orders_amo WHERE $where AND delivery_date <= NOW() order by delivery_date DESC, updated_at DESC LIMIT 1750"); +echo"
всего " . count($data) . ""; + echo""; $cnt = $cnt ?? 0; $in_orders = []; -- 2.39.5