fix(api): 修复机器人消息统计计数器逻辑
chore(logging): 移除 message_manager 各模块多余的启动日志 - 修复了 `get_bot_message_stats_by_chat` 接口中错误地将计数器重置为1而不是递增的问题。 - 清理了 `message_manager` 及其子模块中重复或不必要的启动日志,以减少日志冗余。
This commit is contained in:
@@ -151,7 +151,7 @@ async def get_bot_message_stats_by_chat(
|
||||
chat_id = msg.get("chat_id", "unknown")
|
||||
if chat_id not in stats:
|
||||
stats[chat_id] = 0
|
||||
stats[chat_id] = 1
|
||||
stats[chat_id] += 1
|
||||
|
||||
if format:
|
||||
chat_manager = get_chat_manager()
|
||||
|
||||
Reference in New Issue
Block a user