1
This commit is contained in:
parent
290edb3757
commit
728396d024
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user