This commit is contained in:
aozhiwei 2024-11-15 16:04:50 +08:00
parent 453132a6f4
commit 42ce934916

View File

@ -43,6 +43,9 @@ func (this *UserApi) Login(c *gin.Context) {
} }
f5.GetMsgQueue().FireEvent(constant.MSG_CREATE_USER, q5.Args{user}) f5.GetMsgQueue().FireEvent(constant.MSG_CREATE_USER, q5.Args{user})
} }
if user.NickName != s.GetNickName() {
user.UpdateName()
}
f5.GetMsgQueue().FireEvent(constant.MSG_LOGIN, q5.Args{user}) f5.GetMsgQueue().FireEvent(constant.MSG_LOGIN, q5.Args{user})
rspObj.UserInfo.FromModel(user) rspObj.UserInfo.FromModel(user)
c.JSON(200, rspObj) c.JSON(200, rspObj)