Pārlūkot izejas kodu

Cancel subscribe_msg of wechatcomapp channel

master
6vision pirms 3 mēnešiem
vecāks
revīzija
4eaa2b93c6
1 mainītis faili ar 6 papildinājumiem un 5 dzēšanām
  1. +6
    -5
      channel/wechatcom/wechatcomapp_channel.py

+ 6
- 5
channel/wechatcom/wechatcomapp_channel.py Parādīt failu

@@ -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)


Notiek ielāde…
Atcelt
Saglabāt