chore: 清除最后5处硬编码qq引用(注释+配置白名单)
This commit is contained in:
@@ -128,7 +128,7 @@ func (r *PlatformRouter) SetMessageHandler(h MessageHandler) {
|
||||
}
|
||||
|
||||
// RouteMessage converts a platform message to unified, checks permissions, and dispatches.
|
||||
// adapterKey is the config name (e.g., "qq", "qq-home") used to look up the adapter instance.
|
||||
// adapterKey is the config name (e.g., "obv11", "obv11-home") used to look up the adapter instance.
|
||||
func (r *PlatformRouter) RouteMessage(adapterKey string, rawMsg interface{}) (*UnifiedResponse, error) {
|
||||
a, err := r.GetAdapter(adapterKey)
|
||||
if err != nil {
|
||||
@@ -156,7 +156,7 @@ func (r *PlatformRouter) RouteMessage(adapterKey string, rawMsg interface{}) (*U
|
||||
}
|
||||
|
||||
// Resolve identity (nil for unknown users; caller decides routing).
|
||||
// Use platform type (e.g. "qq") for identity resolution, not adapter key.
|
||||
// Use platform type (e.g. "obv11") for identity resolution, not adapter key.
|
||||
identity := r.mapper.ResolveOrNil(a.PlatformName(), unified.SenderID)
|
||||
if identity != nil {
|
||||
unified.SenderID = identity.CyreneUser
|
||||
|
||||
Reference in New Issue
Block a user