From 77f5d22349b6c4edcdea82c7b84fad4721e3abba Mon Sep 17 00:00:00 2001 From: fomichev Date: Wed, 29 Jan 2025 13:53:08 +0300 Subject: [PATCH] =?utf8?q?=D0=9D=D0=B5=20=D0=BD=D0=B0=D1=87=D0=B8=D1=81?= =?utf8?q?=D0=BB=D1=8F=D0=B5=D0=BC=20=D0=B1=D0=BE=D0=BD=D1=83=D1=81=D1=8B?= =?utf8?q?=20=D1=82=D0=B5=D1=81=D1=82=D0=BE=D0=B2=D1=8B=D0=BC=20=D1=82?= =?utf8?q?=D0=B5=D0=BB=D0=B5=D1=84=D0=BE=D0=BD=D0=B0=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/commands/CronController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/erp24/commands/CronController.php b/erp24/commands/CronController.php index 31bc4dfc..707ad91a 100644 --- a/erp24/commands/CronController.php +++ b/erp24/commands/CronController.php @@ -420,7 +420,11 @@ class CronController extends Controller ->andWhere(['tip_sale' => 'target']) ->andWhere(['date_start' => $kogortDate]) ->column(); + $testPhones = array_map('trim', explode(',', $messagesSettings->test_phones_list)); foreach ($kogortPhones as $key => $phone) { + if (in_array($phone, $testPhones)) { + continue; + } if (!in_array($phone, $userBonusExist)) { $userBonus4 = new UsersBonus(); $userBonus4->phone = '' . $phone; -- 2.39.5