chore: 清除最后5处硬编码qq引用(注释+配置白名单)
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
)
|
||||
|
||||
var validPlatformTypes = map[string]bool{
|
||||
"qq": true, "telegram": true, "webhook": true,
|
||||
"obv11": true, "telegram": true, "webhook": true,
|
||||
"wechat": true, "feishu": true, "discord": true,
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ func (h *LogHandler) handleLogs(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
// Resolve platform type from config name (e.g. "qq-home" → "qq").
|
||||
// Resolve platform type from config name (e.g. "obv11-home" → "obv11").
|
||||
platform := name
|
||||
if h.store != nil {
|
||||
if cfg, err := h.store.Get(name); err == nil && cfg.Platform != "" {
|
||||
|
||||
Reference in New Issue
Block a user