From a4ac117b51b78a41c89d7628ea1b5b11f1d55256 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 21 Jul 2026 19:08:22 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20paid=5Fstorage=20SMS=20=E2=80=94=20?= =?UTF-8?q?=D1=83=D0=B1=D1=80=D0=B0=D1=82=D1=8C=20=D1=84=D0=B8=D0=BB=D1=8C?= =?UTF-8?q?=D1=82=D1=80=20=D0=BF=D0=BE=20=D0=B3=D0=BE=D1=80=D0=BE=D0=B4?= =?UTF-8?q?=D0=B0=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Убран sms_allowed_for_city из paid_storage скрипта - Убрана paid_storage из UI (dropdown + labels) - Описание обновлено: только 1-е и 2-е SMS --- scripts/sms_paid_storage_campaign.py | 1 - src/components/admin/SmsCityRulesPanel.jsx | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/sms_paid_storage_campaign.py b/scripts/sms_paid_storage_campaign.py index c5df2e8..4abb2e9 100644 --- a/scripts/sms_paid_storage_campaign.py +++ b/scripts/sms_paid_storage_campaign.py @@ -185,7 +185,6 @@ def get_groups_to_send(conn): AND COALESCE(og.notification_status, '') NOT IN ('paid_storage_sending', 'paid_storage_sent') AND og.delivery_link IS NOT NULL AND og.delivery_link != '' - AND sms_allowed_for_city(og.town, 'paid_storage') AND NOT EXISTS ( SELECT 1 FROM sms_campaign_log scl WHERE scl.order_group_id = og.id diff --git a/src/components/admin/SmsCityRulesPanel.jsx b/src/components/admin/SmsCityRulesPanel.jsx index fa46a9a..ac7c61a 100644 --- a/src/components/admin/SmsCityRulesPanel.jsx +++ b/src/components/admin/SmsCityRulesPanel.jsx @@ -15,7 +15,6 @@ import { CRIMEAN_CITIES } from "../../constants/cities.js"; const CAMPAIGN_LABELS = { first_sms: "1-е SMS", second_sms: "2-е SMS", - paid_storage: "Платное хранение", "*": "Все кампании", }; @@ -126,7 +125,7 @@ export const SmsCityRulesPanel = () => { SMS по городам

- Управление отправкой SMS по городам и кампаниям. Выключенное правило = SMS не отправляется. + Управление отправкой SMS по городам. Выключенное правило = SMS не отправляется. Только для 1-го и 2-го SMS (согласование доставки). Платное хранение не регулируется.

@@ -171,7 +170,6 @@ export const SmsCityRulesPanel = () => { - {/* Enabled toggle */}