mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-22 18:25:47 +08:00
feat: fix webhook bug in RecordEx JSON (#3642)
This commit is contained in:
parent
08e41ab762
commit
a39a311d2f
@ -40,7 +40,17 @@ func sendWebhook(webhook *Webhook, record *casvisorsdk.Record, extendedUser *Use
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
body = strings.NewReader(util.StructToJson(userMap))
|
type RecordEx struct {
|
||||||
|
casvisorsdk.Record
|
||||||
|
ExtendedUser map[string]interface{} `json:"extendedUser"`
|
||||||
|
}
|
||||||
|
|
||||||
|
recordEx := &RecordEx{
|
||||||
|
Record: *record,
|
||||||
|
ExtendedUser: userMap,
|
||||||
|
}
|
||||||
|
|
||||||
|
body = strings.NewReader(util.StructToJson(recordEx))
|
||||||
} else {
|
} else {
|
||||||
type RecordEx struct {
|
type RecordEx struct {
|
||||||
casvisorsdk.Record
|
casvisorsdk.Record
|
||||||
|
Loading…
x
Reference in New Issue
Block a user