1
This commit is contained in:
parent
453132a6f4
commit
42ce934916
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user