This commit is contained in:
aozhiwei 2024-11-06 11:37:16 +08:00
parent d8f430f88d
commit 4079b885e9

View File

@ -46,6 +46,10 @@ func (this *UserApi) Login(c *gin.Context) {
return
}
}
if int32(q5.GetDaySeconds(nowTime, 0)) > user.LastPresentDiceTime {
user.Dice = mt.Table.Global.GetDailyDiceNum()
user.LastPresentDiceTime = q5.ToInt32(nowTime)
}
rspObj.UserInfo.FromModel(user)
c.JSON(200, rspObj)
}