fix
This commit is contained in:
parent
6c147131ba
commit
c6e896dbba
@ -137,11 +137,11 @@ 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()
|
||||||
|
else:
|
||||||
result[key] = str(value)
|
result[key] = str(value)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user