This commit is contained in:
aozhiwei 2024-11-06 15:35:39 +08:00
parent 4358b82697
commit f7e013a4b1
2 changed files with 3 additions and 0 deletions

View File

@ -45,7 +45,9 @@ func (this *UserApi) Login(c *gin.Context) {
f5.RspErr(c, 500, "server internal error")
return
}
f5.GetMsgQueue().FireEvent(constant.MSG_CREATE_USER, q5.Args{user})
}
f5.GetMsgQueue().FireEvent(constant.MSG_LOGIN, q5.Args{user})
if int32(q5.GetDaySeconds(nowTime, 0)) > user.LastPresentDiceTime {
user.Dice = mt.Table.Global.GetDailyDiceNum()
user.LastPresentDiceTime = q5.ToInt32(nowTime)

View File

@ -23,4 +23,5 @@ const (
const (
MSG_LOGIN = iota
MSG_CREATE_USER
)