From 206562efa4eadf2433eee0d9ec6f4955402ac6ea Mon Sep 17 00:00:00 2001 From: aishannon Date: Sun, 29 Mar 2026 11:45:19 +0800 Subject: [PATCH] fix code conflicts --- pkg/channels/qq/qq.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/channels/qq/qq.go b/pkg/channels/qq/qq.go index 3f6ffedc6..067ab2a56 100644 --- a/pkg/channels/qq/qq.go +++ b/pkg/channels/qq/qq.go @@ -113,7 +113,7 @@ func NewQQChannel(cfg config.QQConfig, messageBus *bus.MessageBus) (*QQChannel, } func (c *QQChannel) Start(ctx context.Context) error { - if c.config.AppID == "" || c.config.AppSecret() == "" { + if c.config.AppID == "" || c.config.AppSecret.IsZero() { return fmt.Errorf("QQ app_id and app_secret not configured") } @@ -127,7 +127,7 @@ func (c *QQChannel) Start(ctx context.Context) error { // create token source credentials := &token.QQBotCredentials{ AppID: c.config.AppID, - AppSecret: c.config.AppSecret(), + AppSecret: c.config.AppSecret.String(), } c.tokenSource = token.NewQQBotTokenSource(credentials)