From 7dafdda43c30f696f164e0353ea05dcbd19c26e7 Mon Sep 17 00:00:00 2001 From: fomichev Date: Fri, 7 Mar 2025 15:45:25 +0300 Subject: [PATCH] =?utf8?q?=D0=97=D0=B0=D0=BC=D0=B5=D0=BD=D0=B0=20=D1=82?= =?utf8?q?=D0=B5=D0=BB=D0=B5=D1=84=D0=BE=D0=BD=D0=BE=D0=B2=20=D0=BA=D0=BE?= =?utf8?q?=D0=B3=D0=BE=D1=80=D1=82=D1=8B=20=D0=BD=D0=B0=20=D1=82=D0=B5?= =?utf8?q?=D1=81=D1=82=D0=BE=D0=B2=D1=8B=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/commands/CronController.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/erp24/commands/CronController.php b/erp24/commands/CronController.php index f2d6d53b..140ba186 100644 --- a/erp24/commands/CronController.php +++ b/erp24/commands/CronController.php @@ -742,6 +742,17 @@ class CronController extends Controller ->andWhere(['status' => SentKogort::STATUSES['created']]) ->column(); + if (!empty($messagesSettings->test_phones_list)) { + if ( + isset($messagesSettings->test_phones_active) + && + $messagesSettings->test_phones_active == 1 + ) { + $testPhones = array_map('trim', explode(',', $messagesSettings->test_phones_list)); + $kogortPhones = $testPhones; + } + } + if (!empty($kogortPhones)) { $countPhones = count($kogortPhones); $this->stdout( @@ -751,6 +762,7 @@ class CronController extends Controller $messageText = $messagesSettings ->replaceShortcodes($messagesSettings->offer_whatsapp, $targetDate); $phonesSentArray = []; + foreach ($kogortPhones as $index => $phone) { if ($index >= $limit) { break; -- 2.39.5