Commit Graph

5799 Commits

Author SHA1 Message Date
Egor
26c78b6814 Update campaigns.py 2026-01-17 05:04:01 +03:00
Egor
3e1abcbd51 Update campaigns.py 2026-01-17 05:03:32 +03:00
Egor
cd6f9a3296 Update campaign_service.py 2026-01-17 05:02:54 +03:00
Egor
73e4009c35 Update start.py 2026-01-17 05:02:07 +03:00
Egor
08d202161c Update campaign.py 2026-01-17 05:01:12 +03:00
Egor
c4cde5efa2 Add files via upload 2026-01-17 05:00:47 +03:00
Egor
248cc51e73 Add files via upload 2026-01-17 04:35:37 +03:00
Egor
63fd318290 Update auth.py 2026-01-17 03:32:10 +03:00
Egor
c0e3e329af Update main.py 2026-01-17 03:31:39 +03:00
Egor
e3fb2ec854 Update purchase.py 2026-01-17 03:28:29 +03:00
Egor
8b83f3d08b Update tickets.py 2026-01-17 03:28:01 +03:00
Egor
acfad93d93 Update message_patch.py 2026-01-17 03:12:15 +03:00
Egor
0e4f9c1ce0 Update happ.py 2026-01-17 03:07:06 +03:00
Egor
94320d4217 Add files via upload 2026-01-17 03:02:28 +03:00
Egor
44592602dc Update links.py 2026-01-17 03:00:13 +03:00
Egor
84702e16df Update stats_service.py 2026-01-17 02:59:28 +03:00
Egor
35dc9cf3e2 Update purchase.py 2026-01-17 02:54:40 +03:00
Egor
17b442ad07 Update config.py 2026-01-17 02:49:14 +03:00
Egor
c59b823df2 Add files via upload 2026-01-17 02:45:46 +03:00
Egor
39fed57876 Update pricing.py 2026-01-17 02:41:59 +03:00
Egor
c0062b1ca3 Update promocode.py 2026-01-17 02:38:11 +03:00
Egor
5bdb06a280 Update main.py 2026-01-17 02:37:43 +03:00
Egor
a42a884eb6 Update purchase.py 2026-01-17 02:37:16 +03:00
Egor
8726e33665 Add files via upload 2026-01-17 02:36:33 +03:00
Egor
4599801f83 Update pricing.py 2026-01-17 02:35:23 +03:00
Egor
a5f17b6802 Add files via upload 2026-01-17 02:03:06 +03:00
Egor
c804505361 Add files via upload 2026-01-17 02:02:40 +03:00
Egor
782d910f25 Add files via upload 2026-01-17 01:50:34 +03:00
Egor
ac87d47bf3 Add files via upload 2026-01-17 01:49:56 +03:00
Egor
c61cd0b42e Update texts.py 2026-01-17 01:19:12 +03:00
Egor
5fcc202542 Add files via upload 2026-01-17 01:18:02 +03:00
Egor
1b4758cdbf Update monitoring.py 2026-01-17 01:16:50 +03:00
Egor
5cb0ce3030 Add files via upload 2026-01-17 01:16:10 +03:00
Egor
e7bd52463d Add files via upload 2026-01-17 01:15:28 +03:00
Egor
c1f035b13d Add files via upload 2026-01-17 01:14:57 +03:00
Egor
8d888f3e56 Merge pull request #2300 from BEDOLAGA-DEV/main
w
2026-01-17 01:04:26 +03:00
PEDZEO
1a990bd776 Refactor settings handling in AdminBanSystem to improve response parsing
- Introduced a new helper function `_parse_setting_response` to streamline the parsing of settings responses from the API.
- Updated the `get_settings`, `get_setting`, `set_setting`, and `toggle_setting` endpoints to utilize the new parsing function, enhancing code readability and maintainability.
- Improved handling of settings data formats, allowing for both detailed metadata and simple values.
2026-01-16 21:04:48 +03:00
PEDZEO
b0f83f3534 Новые вкладки в AdminBanSystem:
1. Traffic (Трафик) - статистика трафика, топ пользователей по трафику, последние нарушения
  2. Reports (Отчёты) - отчёты за период (6h, 12h, 24h, 48h, 72h), статистика активных пользователей и IP, топ нарушителей
  3. Settings (Настройки) - управление настройками системы банов, группировка по категориям, переключатели для bool, ввод для int
  4. Health (Здоровье) - статус системы (healthy/degraded/unhealthy), аптайм, статус компонентов
2026-01-16 20:51:28 +03:00
PEDZEO
723a49f1f1 Fix stats mapping: uptime from tcp_metrics, agents count from connected_nodes
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 19:25:20 +03:00
PEDZEO
e31c9118b3 ● Готово! Исправил маппинг для нод и агентов. 2026-01-16 19:21:31 +03:00
PEDZEO
7ef416eff2 Implement logging for Ban System API checks and add endpoint for raw stats retrieval
- Added logging for Ban System API status checks, including whether the system is enabled and its configured URL.
- Introduced a new endpoint `/stats/raw` to fetch raw statistics from the Ban System API for debugging purposes.
- Enhanced logging to capture raw stats response for better monitoring.
2026-01-16 18:51:19 +03:00
PEDZEO
29d0190a05 Исправил маппинг полей. 2026-01-16 18:41:21 +03:00
Egor
5eec0aa1a0 Update balance.py 2026-01-16 18:13:25 +03:00
Egor
02ae44a594 Merge pull request #2298 from Gy9vin/main
Мониторинг трафика v2
2026-01-16 17:56:10 +03:00
Egor
b9801614f3 Update subscription.py 2026-01-16 17:51:28 +03:00
Egor
0ea1076761 Update subscription.py 2026-01-16 17:36:28 +03:00
gy9vin
94cd06302a Фиксы UI 2026-01-16 15:58:22 +03:00
gy9vin
5a64dbf209 feat(payments): добавить режим яркого промпта активации подписки
- Реализован режим SHOW_ACTIVATION_PROMPT_AFTER_TOPUP для яркого уведомления пользователей
  - При пополнении баланса отправляется внимание-привлекающее сообщение с восклицательными знаками
  - Динамические кнопки в зависимости от статуса подписки:
    * Активная платная подписка: "🔄 Продлить" + "📱 Изменить устройства"
    * Нет подписки/истекла/триал: "🔥 Активировать подписку"
  - Убраны дублирующие уведомления из yookassa.py (строка 851)
  - Убраны дублирующие уведомления из subscription_auto_purchase_service.py (строки 755, 918)
  - Режим включается через SHOW_ACTIVATION_PROMPT_AFTER_TOPUP=true в .env

  Файлы:
  - app/services/payment/common.py: добавлена логика яркого промпта
  - app/services/payment/yookassa.py: отключено старое уведомление для корзины
  - app/services/subscription_auto_purchase_service.py: отключены 2 блока старых уведомлений
2026-01-16 15:29:44 +03:00
PEDZEO
b392a99f56 Интеграция системы мониторинга банов 2026-01-16 15:17:02 +03:00
gy9vin
07417a4877 фикс 2026-01-16 14:28:39 +03:00