mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 10:52:33 +08:00
fix: the need token error
This commit is contained in:
parent
5c3b66aad6
commit
91b23ba041
@ -423,7 +423,7 @@ func (m *MessageApi) CallbackExample(c *gin.Context) {
|
|||||||
ServerMsgID: req.ServerMsgID,
|
ServerMsgID: req.ServerMsgID,
|
||||||
SenderPlatformID: req.SenderPlatformID,
|
SenderPlatformID: req.SenderPlatformID,
|
||||||
SenderNickname: user.Nickname,
|
SenderNickname: user.Nickname,
|
||||||
SenderFaceURL: user.UserID,
|
SenderFaceURL: user.FaceURL,
|
||||||
SessionType: req.SessionType,
|
SessionType: req.SessionType,
|
||||||
MsgFrom: req.MsgFrom,
|
MsgFrom: req.MsgFrom,
|
||||||
ContentType: req.ContentType,
|
ContentType: req.ContentType,
|
||||||
|
|||||||
@ -201,7 +201,6 @@ func NewGinRouter(discov discoveryregistry.SvcDiscoveryRegistry, rdb redis.Unive
|
|||||||
msgGroup.POST("/check_msg_is_send_success", m.CheckMsgIsSendSuccess)
|
msgGroup.POST("/check_msg_is_send_success", m.CheckMsgIsSendSuccess)
|
||||||
msgGroup.POST("/get_server_time", m.GetServerTime)
|
msgGroup.POST("/get_server_time", m.GetServerTime)
|
||||||
|
|
||||||
msgGroup.POST("/callbackBeforeSendSingleMsgCommand", m.CallbackExample)
|
|
||||||
}
|
}
|
||||||
// Conversation
|
// Conversation
|
||||||
conversationGroup := r.Group("/conversation", ParseToken)
|
conversationGroup := r.Group("/conversation", ParseToken)
|
||||||
@ -222,6 +221,10 @@ func NewGinRouter(discov discoveryregistry.SvcDiscoveryRegistry, rdb redis.Unive
|
|||||||
statisticsGroup.POST("/group/create", g.GroupCreateCount)
|
statisticsGroup.POST("/group/create", g.GroupCreateCount)
|
||||||
statisticsGroup.POST("/group/active", m.GetActiveGroup)
|
statisticsGroup.POST("/group/active", m.GetActiveGroup)
|
||||||
}
|
}
|
||||||
|
callback := r.Group("/callbackExample")
|
||||||
|
{
|
||||||
|
callback.POST("/callbackBeforeSendSingleMsgCommand", m.CallbackExample)
|
||||||
|
}
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user