perf: add debugging msg for webhook style adapters (#1253)

This commit is contained in:
Junyan Qin (Chin)
2025-03-30 23:23:31 +08:00
committed by GitHub
parent f5e98d4ebb
commit 8b56f94667
2 changed files with 7 additions and 0 deletions

View File

@@ -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']

View File

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