mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 02:42:19 +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,
|
||||
SenderPlatformID: req.SenderPlatformID,
|
||||
SenderNickname: user.Nickname,
|
||||
SenderFaceURL: user.UserID,
|
||||
SenderFaceURL: user.FaceURL,
|
||||
SessionType: req.SessionType,
|
||||
MsgFrom: req.MsgFrom,
|
||||
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("/get_server_time", m.GetServerTime)
|
||||
|
||||
msgGroup.POST("/callbackBeforeSendSingleMsgCommand", m.CallbackExample)
|
||||
}
|
||||
// Conversation
|
||||
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/active", m.GetActiveGroup)
|
||||
}
|
||||
callback := r.Group("/callbackExample")
|
||||
{
|
||||
callback.POST("/callbackBeforeSendSingleMsgCommand", m.CallbackExample)
|
||||
}
|
||||
return r
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user