mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 12:05:54 +00:00
perf: add debugging msg for webhook style adapters (#1253)
This commit is contained in:
committed by
GitHub
parent
f5e98d4ebb
commit
8b56f94667
@@ -310,6 +310,9 @@ class GeWeChatAdapter(adapter.MessagePlatformAdapter):
|
||||
async def gewechat_callback():
|
||||
data = await quart.request.json
|
||||
# print(json.dumps(data, indent=4, ensure_ascii=False))
|
||||
self.ap.logger.debug(
|
||||
f"Gewechat callback event: {data}"
|
||||
)
|
||||
|
||||
if 'data' in data:
|
||||
data['Data'] = data['data']
|
||||
|
||||
@@ -328,6 +328,10 @@ class LarkAdapter(adapter.MessagePlatformAdapter):
|
||||
try:
|
||||
data = await quart.request.json
|
||||
|
||||
self.ap.logger.debug(
|
||||
f"Lark callback event: {data}"
|
||||
)
|
||||
|
||||
if 'encrypt' in data:
|
||||
cipher = AESCipher(self.config['encrypt-key'])
|
||||
data = cipher.decrypt_string(data['encrypt'])
|
||||
|
||||
Reference in New Issue
Block a user