1
This commit is contained in:
parent
4358b82697
commit
f7e013a4b1
@ -45,7 +45,9 @@ func (this *UserApi) Login(c *gin.Context) {
|
|||||||
f5.RspErr(c, 500, "server internal error")
|
f5.RspErr(c, 500, "server internal error")
|
||||||
return
|
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 {
|
if int32(q5.GetDaySeconds(nowTime, 0)) > user.LastPresentDiceTime {
|
||||||
user.Dice = mt.Table.Global.GetDailyDiceNum()
|
user.Dice = mt.Table.Global.GetDailyDiceNum()
|
||||||
user.LastPresentDiceTime = q5.ToInt32(nowTime)
|
user.LastPresentDiceTime = q5.ToInt32(nowTime)
|
||||||
|
@ -23,4 +23,5 @@ const (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
MSG_LOGIN = iota
|
MSG_LOGIN = iota
|
||||||
|
MSG_CREATE_USER
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user