Skip to content

Commit c248d0f

Browse files
authored
Merge pull request #2262 from 6vision/cancel_wecom_subscribe
Cancel subscribe_msg of wechatcomapp channel
2 parents 648a04b + 4eaa2b9 commit c248d0f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

channel/wechatcom/wechatcomapp_channel.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,12 @@ def POST(self):
162162
logger.debug("[wechatcom] receive message: {}, msg= {}".format(message, msg))
163163
if msg.type == "event":
164164
if msg.event == "subscribe":
165-
reply_content = subscribe_msg()
166-
if reply_content:
167-
reply = create_reply(reply_content, msg).render()
168-
res = channel.crypto.encrypt_message(reply, nonce, timestamp)
169-
return res
165+
pass
166+
# reply_content = subscribe_msg()
167+
# if reply_content:
168+
# reply = create_reply(reply_content, msg).render()
169+
# res = channel.crypto.encrypt_message(reply, nonce, timestamp)
170+
# return res
170171
else:
171172
try:
172173
wechatcom_msg = WechatComAppMessage(msg, client=channel.client)

0 commit comments

Comments
 (0)