From 73cc29275017f9a779b3ced3eaa98671954fd8e5 Mon Sep 17 00:00:00 2001 From: Vladimir Fomichev Date: Mon, 26 Jan 2026 10:50:26 +0300 Subject: [PATCH] =?utf8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5?= =?utf8?q?=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D0=BD?= =?utf8?q?=D0=BD=D1=8B=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/services/OrderControlReportService.php | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/erp24/services/OrderControlReportService.php b/erp24/services/OrderControlReportService.php index ccb01b59..8d6b45d9 100644 --- a/erp24/services/OrderControlReportService.php +++ b/erp24/services/OrderControlReportService.php @@ -49,16 +49,6 @@ class OrderControlReportService */ public const TIMEZONE = 'Europe/Moscow'; - /** - * Telegram bot token для development - */ - private const TELEGRAM_BOT_DEV = ''; - - /** - * Telegram bot token для production - */ - private const TELEGRAM_BOT_PROD = ''; - /** * Конфигурация отчёта */ @@ -1381,14 +1371,18 @@ class OrderControlReportService /** * Получает токен Telegram-бота в зависимости от окружения * + * Соответствует TelegramService: + * - dev: TELEGRAM_BOT_TOKEN (без суффикса) + * - prod: TELEGRAM_BOT_TOKEN_PROD + * * @return string */ private function getTelegramBotToken(): string { if ($this->isDevEnvironment()) { - return getenv('TELEGRAM_BOT_TOKEN_DEV') ?: self::TELEGRAM_BOT_DEV; + return getenv('TELEGRAM_BOT_TOKEN') ?: ''; } - return getenv('TELEGRAM_BOT_TOKEN_PROD') ?: self::TELEGRAM_BOT_PROD; + return getenv('TELEGRAM_BOT_TOKEN_PROD') ?: ''; } /** -- 2.39.5