fix: the need token error

pull/1783/head
luhaoling 2 years ago
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…
Cancel
Save