增加飞书webhook监听处理

This commit is contained in:
laodaming 2023-11-07 14:20:40 +08:00
parent e101afccc6
commit 1c3db93ffd

View File

@ -100,7 +100,7 @@ func (l *WebhookLogic) Webhook(w http.ResponseWriter, r *http.Request) {
logx.Error("反序列化请求体中的header失败", err)
return
}
logx.Info("触发webhook:", msgHeader.EventType)
logx.Info("触发webhook:", msgHeader.EventType, "数据:", webhookMsg)
switch msgHeader.EventType {
case "contact.custom_attr_event.updated_v3": //成员字段管理属性变更事件
case "contact.department.created_v3": //部门新建