842 B
842 B
2026-10-21 变动清单
Session: 编译 / lint 修复
- bootstrap:将
finishApp中 TCP/HTTP 装配抽到attachTransports,满足funlen;参数类型使用tcp.TaskPool、session.Manager接口。 - client/logic:
service_test.go中rangeValCopy改为索引遍历。 - 验证:
make testpass(golangci-lint +go test ./...+ logic coverage ≥65%)。
Session: 敏感词扩展到朋友圈 / 广场 / 昵称 / 群公告
- 词库:仍是一份
t_sensitive_words,不按场景拆库。 - moderation:新增
GateText,非会话命中conversation_id=0,处罚与聊天一致(替换落库,拒绝/禁言/封禁不写入)。 - 接入:朋友圈与广场的正文和评论、用户昵称、群公告;启动时
BindModeration。 - 验证:
make testpass。