mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-07 10:35:59 +08:00
Merge branch 'tuoyun' of github.com:OpenIMSDK/Open-IM-Server into tuoyun
This commit is contained in:
@@ -140,7 +140,7 @@ func ManagementSendMsg(c *gin.Context) {
|
||||
}
|
||||
log.NewInfo("", data, params)
|
||||
token := c.Request.Header.Get("token")
|
||||
claims, err := token_verify.ParseToken(token)
|
||||
claims, err := token_verify.ParseToken(token, params.OperationID)
|
||||
if err != nil {
|
||||
log.NewError(params.OperationID, "parse token failed", err.Error())
|
||||
c.JSON(http.StatusBadRequest, gin.H{"errCode": 400, "errMsg": "parse token failed", "sendTime": 0, "MsgID": ""})
|
||||
@@ -289,16 +289,16 @@ type OANotificationElem struct {
|
||||
Url string `mapstructure:"url"`
|
||||
MixType int32 `mapstructure:"mixType"`
|
||||
Image struct {
|
||||
SourceUrl string `mapstructure:"sourceUrl"`
|
||||
SnapshotUrl string `mapstructure:"snapshotUrl"`
|
||||
SourceUrl string `mapstructure:"sourceURL"`
|
||||
SnapshotUrl string `mapstructure:"snapshotURL"`
|
||||
} `mapstructure:"image"`
|
||||
Video struct {
|
||||
SourceUrl string `mapstructure:"sourceUrl"`
|
||||
SnapshotUrl string `mapstructure:"snapshotUrl"`
|
||||
SourceUrl string `mapstructure:"sourceURL"`
|
||||
SnapshotUrl string `mapstructure:"snapshotURL"`
|
||||
Duration int64 `mapstructure:"duration"`
|
||||
} `mapstructure:"video"`
|
||||
File struct {
|
||||
SourceUrl string `mapstructure:"sourceUrl"`
|
||||
SourceUrl string `mapstructure:"sourceURL"`
|
||||
FileName string `mapstructure:"fileName"`
|
||||
FileSize int64 `mapstructure:"fileSize"`
|
||||
} `mapstructure:"file"`
|
||||
|
||||
Reference in New Issue
Block a user