From 4eaa2b93c69efcbad7f27afa5f096fe5e2bd17f2 Mon Sep 17 00:00:00 2001 From: 6vision Date: Thu, 22 Aug 2024 22:03:04 +0800 Subject: [PATCH] Cancel subscribe_msg of wechatcomapp channel --- channel/wechatcom/wechatcomapp_channel.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/channel/wechatcom/wechatcomapp_channel.py b/channel/wechatcom/wechatcomapp_channel.py index f692802..5ed3296 100644 --- a/channel/wechatcom/wechatcomapp_channel.py +++ b/channel/wechatcom/wechatcomapp_channel.py @@ -162,11 +162,12 @@ class Query: logger.debug("[wechatcom] receive message: {}, msg= {}".format(message, msg)) if msg.type == "event": if msg.event == "subscribe": - reply_content = subscribe_msg() - if reply_content: - reply = create_reply(reply_content, msg).render() - res = channel.crypto.encrypt_message(reply, nonce, timestamp) - return res + pass + # reply_content = subscribe_msg() + # if reply_content: + # reply = create_reply(reply_content, msg).render() + # res = channel.crypto.encrypt_message(reply, nonce, timestamp) + # return res else: try: wechatcom_msg = WechatComAppMessage(msg, client=channel.client)