Bladeren bron

Merge pull request #2262 from 6vision/cancel_wecom_subscribe

Cancel subscribe_msg of wechatcomapp channel
master
Saboteur7 GitHub 3 maanden geleden
bovenliggende
commit
c248d0f3f4
Geen bekende sleutel gevonden voor deze handtekening in de database GPG sleutel-ID: B5690EEEBB952194
1 gewijzigde bestanden met toevoegingen van 6 en 5 verwijderingen
  1. +6
    -5
      channel/wechatcom/wechatcomapp_channel.py

+ 6
- 5
channel/wechatcom/wechatcomapp_channel.py Bestand weergeven

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


Laden…
Annuleren
Opslaan