]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Добавление тестовых телефонов origin/feature_fomichev_erp-20250210_bonus_target_tg_notification
authorfomichev <vladimir.fomichev@erp-flowers.ru>
Wed, 12 Feb 2025 13:01:26 +0000 (16:01 +0300)
committerfomichev <vladimir.fomichev@erp-flowers.ru>
Wed, 12 Feb 2025 13:01:26 +0000 (16:01 +0300)
erp24/commands/CronController.php

index b99c8403e9560acc24179ada8fbe042773a08ee1..45e98faf88a4e369cfd23533eb429d048bcd0c9f 100644 (file)
@@ -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" .