Skip to content

Commit

Permalink
Merge pull request #2262 from 6vision/cancel_wecom_subscribe
Browse files Browse the repository at this point in the history
Cancel subscribe_msg of wechatcomapp channel
  • Loading branch information
Saboteur7 authored Aug 29, 2024
2 parents 648a04b + 4eaa2b9 commit c248d0f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions channel/wechatcom/wechatcomapp_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,12 @@ def POST(self):
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)
Expand Down

0 comments on commit c248d0f

Please sign in to comment.