Cancel subscribe_msg of wechatcomapp channel

This commit is contained in:
6vision
2024-08-22 22:03:04 +08:00
parent f495213b2c
commit 4eaa2b93c6

View File

@@ -162,11 +162,12 @@ class Query:
logger.debug("[wechatcom] receive message: {}, msg= {}".format(message, msg)) logger.debug("[wechatcom] receive message: {}, msg= {}".format(message, msg))
if msg.type == "event": if msg.type == "event":
if msg.event == "subscribe": if msg.event == "subscribe":
reply_content = subscribe_msg() pass
if reply_content: # reply_content = subscribe_msg()
reply = create_reply(reply_content, msg).render() # if reply_content:
res = channel.crypto.encrypt_message(reply, nonce, timestamp) # reply = create_reply(reply_content, msg).render()
return res # res = channel.crypto.encrypt_message(reply, nonce, timestamp)
# return res
else: else:
try: try:
wechatcom_msg = WechatComAppMessage(msg, client=channel.client) wechatcom_msg = WechatComAppMessage(msg, client=channel.client)