mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user