chore: 清除最后5处硬编码qq引用(注释+配置白名单)

This commit is contained in:
2026-06-23 18:20:33 +08:00
parent 8a3236b8bb
commit 73f0bf7b3e
4 changed files with 5 additions and 5 deletions
@@ -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 != "" {