This commit is contained in:
aozhiwei 2024-11-06 11:53:23 +08:00
parent 290edb3757
commit 728396d024

View File

@ -50,8 +50,7 @@ func (this *UserApi) Login(c *gin.Context) {
user.Dice = mt.Table.Global.GetDailyDiceNum()
user.LastPresentDiceTime = q5.ToInt32(nowTime)
if result := f5.GetApp().GetOrmDb(constant.WHEEL_DB).Model(user).Select(
"dice", "last_present_dice_time").Updates(user); result.Error != nil &&
!errors.Is(result.Error, gorm.ErrRecordNotFound) {
"dice", "last_present_dice_time").Updates(user); result.Error != nil {
f5.RspErr(c, 500, "server internal error")
return
}