Merge branch 'main' of https://github.com/cdle/xdd into main
This commit is contained in:
commit
89b664750b
@ -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