Update user.go
This commit is contained in:
parent
577aa4a672
commit
cc53b3131a
@ -55,7 +55,7 @@ func NewActiveUser(class string, uid int, msgs ...interface{}) {
|
||||
} else {
|
||||
if zero.Unix() > u.ActiveAt.Unix() {
|
||||
first = true
|
||||
db.Updates(map[string]interface{}{
|
||||
db.Model(&u).Updates(map[string]interface{}{
|
||||
"active_at": ntime,
|
||||
"coin": gorm.Expr("coin+1"),
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user