mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 10:52:33 +08:00
fix: fix SnapShotPicture type field
This commit is contained in:
parent
da4b6b58e7
commit
2f9c36a1ae
@ -445,9 +445,8 @@ func (m *MessageApi) CallbackExample(c *gin.Context) {
|
|||||||
text.BigPicture.Type = arr[1]
|
text.BigPicture.Type = arr[1]
|
||||||
}
|
}
|
||||||
|
|
||||||
if strings.Contains(text.SnapshotPicture.Type, "/") {
|
if len(text.SnapshotPicture.Type) == 0 {
|
||||||
arr := strings.Split(text.SnapshotPicture.Type, "/")
|
text.SnapshotPicture.Type = text.SourcePicture.Type
|
||||||
text.SnapshotPicture.Type = arr[1]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mapStruct := make(map[string]any)
|
mapStruct := make(map[string]any)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user