From: fomichev Date: Wed, 12 Feb 2025 13:01:26 +0000 (+0300) Subject: Добавление тестовых телефонов X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=f3228e8865c3466a844f45c71f8e83bf9100428e;p=erp24_rep%2Fyii-erp24%2F.git Добавление тестовых телефонов --- diff --git a/erp24/commands/CronController.php b/erp24/commands/CronController.php index b99c8403..45e98faf 100644 --- a/erp24/commands/CronController.php +++ b/erp24/commands/CronController.php @@ -429,7 +429,6 @@ class CronController extends Controller ->column(); $testPhones = array_map('trim', explode(',', $messagesSettings->test_phones_list)); $countTestPhones = count($testPhones); - $countPhones += $countTestPhones; $countBonuses = 0; foreach ($kogortPhones as $key => $phone) { if (in_array($phone, $testPhones)) { @@ -458,6 +457,7 @@ class CronController extends Controller } } } + $countBonuses += $countTestPhones; if ($countBonuses !== $countPhones) { $messageBonuses = "⚠️ Внимание! Количество начисленных бонусов отличается от количества телефонов в когорте.\n\n" .