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)