mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 02:42:19 +08:00
fix: fix the valiable unused err
This commit is contained in:
parent
8525bbd9fd
commit
679f819ce7
@ -414,6 +414,12 @@ func (m *MessageApi) CallbackExample(c *gin.Context) {
|
|||||||
if req.SendID == robotics {
|
if req.SendID == robotics {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
text := apistruct.TextElem{}
|
||||||
|
picture := apistruct.PictureElem{}
|
||||||
|
mapStruct := make(map[string]any)
|
||||||
|
mapStructSnap := make(map[string]interface{})
|
||||||
|
mapStructBig := make(map[string]interface{})
|
||||||
|
mapStructSource := make(map[string]interface{})
|
||||||
// Processing text messages
|
// Processing text messages
|
||||||
if req.ContentType == constant.Picture || req.ContentType == constant.Text {
|
if req.ContentType == constant.Picture || req.ContentType == constant.Text {
|
||||||
var err error
|
var err error
|
||||||
@ -425,12 +431,6 @@ func (m *MessageApi) CallbackExample(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Handle message structures
|
// Handle message structures
|
||||||
text := apistruct.TextElem{}
|
|
||||||
picture := apistruct.PictureElem{}
|
|
||||||
mapStruct := make(map[string]any)
|
|
||||||
mapStructSnap := make(map[string]interface{})
|
|
||||||
mapStructBig := make(map[string]interface{})
|
|
||||||
mapStructSource := make(map[string]interface{})
|
|
||||||
if req.ContentType == constant.Text {
|
if req.ContentType == constant.Text {
|
||||||
err = json.Unmarshal([]byte(req.Content), &text)
|
err = json.Unmarshal([]byte(req.Content), &text)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user