feat(channels): 微信入站媒体脱敏取证日志(形状行记 ref 来源+host、结局行记 err_kind;不记 URL/query/密钥)
CI / Backend (build / vet / test / cross-compile) (push) Has been cancelled
CI / Frontend (tsc + vite build) (push) Has been cancelled

This commit is contained in:
AskaEth committed 2026-10-05 12:07:18 +08:00
1 parent 5139945bfe
commit f44114301e
4 files changed
+623

No files matched your search

+4
View File
@@ -193,6 +193,10 @@ func (a *Adapter) convertMessage(raw json.RawMessage) (string, *adapter.UnifiedM
a.log.Warn("decode inbound message", "err", err)
return "", nil
}
// 结构取证(DEBUG,见 inbound_debug.go):它刻意排在 message_type 判定**之前**,
// 于是 `message_type != 1` 的非用户消息也留得下一行,「平台没推」与「推了但不是
// 主人消息」才区分得开。
a.logInboundMediaShape(&rm)
if rm.MessageType != msgTypeUser {
return "", nil
}