From c6e896dbbaa713a0b772bf97b267123f1850b5f3 Mon Sep 17 00:00:00 2001 From: yubanmeiqin9048 <64676973+yubanmeiqin9048@users.noreply.github.com> Date: Tue, 8 Aug 2023 07:36:44 +0800 Subject: [PATCH] fix --- app/plugins/webhook/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/plugins/webhook/__init__.py b/app/plugins/webhook/__init__.py index 81bc5774..c38f60f9 100644 --- a/app/plugins/webhook/__init__.py +++ b/app/plugins/webhook/__init__.py @@ -137,12 +137,12 @@ class WebHook(_PluginBase): return def __to_dict(event): - # 遍历 event_data result = {} for key, value in event.items(): if hasattr(value, 'to_dict'): - result[key] = value.to_dict() - result[key] = str(value) + result[key] = value.to_dict() + else: + result[key] = str(value) return result event_info = {