fix some bugs:

Fix hiddenValues in manager_channel.go — use comma-ok type assertions to avoid panics                               │
  Add GetDecoded() error handling in weixin.go saveWeixinConfig for consistency with wecom.go                         │
  Fix stray quotes in docs/configuration.md JSON examples                                                             │
  Add V2→V3 migration section to docs/config-versioning.md
  Fix feishu init with 32bit wrong signature cause build fail
This commit is contained in:
Cytown
2026-04-14 00:00:13 +08:00
parent cbd38dfd28
commit f16bade919
6 changed files with 109 additions and 24 deletions
+3
View File
@@ -220,6 +220,9 @@ func (h *Handler) saveWeixinBinding(token, accountID string) error {
var weixinCfg config.WeixinSettings
if err := bc.Decode(&weixinCfg); err != nil {
logger.ErrorCF("weixin", "failed to decode weixin settings", map[string]any{
"error": err.Error(),
})
return fmt.Errorf("decode weixin settings: %w", err)
}
weixinCfg.Token = *config.NewSecureString(token)