Add files via upload

This commit is contained in:
公明 authored and GitHub committed 2026-06-29 10:41:42 +08:00
1 parent ed64803a51
commit 0bcb16e021
5 files changed
+187 -22

No files matched your search

+4
View File
@@ -798,6 +798,10 @@ func (h *ConfigHandler) UpdateConfig(c *gin.Context) {
// 更新机器人配置
if req.Robots != nil {
if err := config.ValidateWecomConfig(req.Robots.Wecom); err != nil {
c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
return
}
h.config.Robots = *req.Robots
h.logger.Info("更新机器人配置",
zap.Bool("wechat_enabled", h.config.Robots.Wechat.Enabled),