功能:完善聊天媒体展示与交易事件兼容
- 支持保存并展示会话关联商品主图 - 支持识别、持久化和播放 AMR 语音消息及其时长 - 补齐聊天接口 OpenAPI 契约、跨方言迁移和前端构建资源 - 兼容嵌套交易事件字段并避免改价卡片重复触发拍下事件
This commit is contained in:
1 parent
50eca2fca6
commit
58f91ac77d
58 files changed
+1040
-209
No files matched your search
@@ -219,7 +219,7 @@ func (d *messageDispatcher) markAndCheckDedup(decrypted map[string]any, chat *Ch
|
||||
if // last、ok 用于本次流程后续判断的last、ok
|
||||
last, ok := d.processed[msgID]; ok {
|
||||
if now.Sub(last) < MessageExpireTime {
|
||||
d.logger.Info("消息已处理过,跳过", "msg_id", truncID(msgID))
|
||||
d.logger.Debug("消息已处理过,跳过", "msg_id", truncID(msgID))
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ func (r *wsRecorder) start(ctx context.Context) {
|
||||
if cleanupErr != nil && ctx.Err() == nil {
|
||||
r.logger.Warn("清理过期 WS 报文失败", "cookie_id", r.cookieID, "err", cleanupErr)
|
||||
} else if deleted > 0 {
|
||||
r.logger.Info("已清理过期 WS 报文", "cookie_id", r.cookieID, "deleted", deleted)
|
||||
r.logger.Debug("已清理过期 WS 报文", "cookie_id", r.cookieID, "deleted", deleted)
|
||||
}
|
||||
|
||||
// ticker 定期触发队列刷盘。
|
||||
|
||||
Reference in new issue
Block a user