From 2e391d599d08ea7a7c11442bc2845a1191494c3d Mon Sep 17 00:00:00 2001
From: yj <2077506045@qq.com>
Date: 星期四, 07 八月 2025 17:55:58 +0800
Subject: [PATCH] 新增消息聚会,短时间内同一用户发送的消息聚合才后发送给AI

---
 config.example.json |   65 ++++++++++++++++++++++++++++++++
 1 files changed, 65 insertions(+), 0 deletions(-)

diff --git a/config.example.json b/config.example.json
new file mode 100644
index 0000000..f64b2f5
--- /dev/null
+++ b/config.example.json
@@ -0,0 +1,65 @@
+{
+  "database": {
+    "url": "mysql+pymysql://username:password@host:port/database"
+  },
+  "redis": {
+    "url": "redis://localhost:6379/0"
+  },
+  "ecloud": {
+    "base_url": "http://your-ecloud-server:port",
+    "authorization": "your-authorization-token",
+    "w_id": "your-wechat-instance-id"
+  },
+  "dify": {
+    "base_url": "https://api.dify.ai/v1",
+    "api_key": "your-dify-api-key",
+    "streaming_enabled": true,
+    "streaming_timeout": 1200
+  },
+  "server": {
+    "host": "0.0.0.0",
+    "port": 7979,
+    "debug": false
+  },
+  "logging": {
+    "level": "INFO",
+    "file": "logs/app.log"
+  },
+  "message_processing": {
+    "max_retry_count": 3,
+    "retry_delay": 5,
+    "queue_timeout": 300
+  },
+  "customer_service": {
+    "names": ["瀹㈡湇1", "瀹㈡湇2"]
+  },
+  "friend_ignore": {
+    "enabled": true,
+    "whitelist": []
+  },
+  "silence_mode": {
+    "enabled": true,
+    "duration_minutes": 10
+  },
+  "online_status_monitor": {
+    "enabled": true,
+    "check_interval_minutes": 5,
+    "notification_message": "寰俊鎺夌嚎鎻愰啋锛氬綋鍓嶆病鏈夊湪绾跨殑寰俊璐﹀彿锛岃鍙婃椂妫�鏌ワ紒"
+  },
+  "email_notification": {
+    "enabled": true,
+    "smtp_server": "smtp.qq.com",
+    "smtp_port": 587,
+    "smtp_username": "your_email@qq.com",
+    "smtp_password": "your_qq_app_password",
+    "from_email": "your_email@qq.com",
+    "to_emails": ["admin@example.com", "backup@example.com"]
+  },
+  "sms_notification": {
+    "enabled": true,
+    "api_url": "https://smsapi.izjun.com:8443/sms/api/sendMessageMass",
+    "username": "your_sms_username",
+    "password": "your_sms_password",
+    "phone_numbers": ["13800138000", "13900139000"]
+  }
+}

--
Gitblit v1.9.1