This commit is contained in:
yubanmeiqin9048 2023-08-08 07:36:44 +08:00 committed by GitHub
parent 6c147131ba
commit c6e896dbba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,12 +137,12 @@ class WebHook(_PluginBase):
return return
def __to_dict(event): def __to_dict(event):
# 遍历 event_data
result = {} result = {}
for key, value in event.items(): for key, value in event.items():
if hasattr(value, 'to_dict'): if hasattr(value, 'to_dict'):
result[key] = value.to_dict() result[key] = value.to_dict()
result[key] = str(value) else:
result[key] = str(value)
return result return result
event_info = { event_info = {