diff --git a/internal/server/wechat_notify_consumer.go b/internal/server/wechat_notify_consumer.go index 7e964d1..6ab885b 100644 --- a/internal/server/wechat_notify_consumer.go +++ b/internal/server/wechat_notify_consumer.go @@ -160,6 +160,11 @@ func (w *WechatNotifyConsumer) processMessage(ctx context.Context, msg mq_http_s // Stop 停止消息消费 func (w *WechatNotifyConsumer) Stop(_ context.Context) error { + if !w.conf.WechatNotifyMQ.IsOpenConsumer { + fmt.Println("关闭 wechat consumer 完成!") + return nil + } + fmt.Println("关闭 wechat consumer 中...") w.shutdownFlag.Store(true)