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.Dice = mt.Table.Global.GetDailyDiceNum()
|
||||||
user.LastPresentDiceTime = q5.ToInt32(nowTime)
|
user.LastPresentDiceTime = q5.ToInt32(nowTime)
|
||||||
if result := f5.GetApp().GetOrmDb(constant.WHEEL_DB).Model(user).Select(
|
if result := f5.GetApp().GetOrmDb(constant.WHEEL_DB).Model(user).Select(
|
||||||
"dice", "last_present_dice_time").Updates(user); result.Error != nil &&
|
"dice", "last_present_dice_time").Updates(user); result.Error != nil {
|
||||||
!errors.Is(result.Error, gorm.ErrRecordNotFound) {
|
|
||||||
f5.RspErr(c, 500, "server internal error")
|
f5.RspErr(c, 500, "server internal error")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user