Merge branch 'main' of https://github.com/cdle/xdd into main

This commit is contained in:
cdle 2021-08-20 07:53:49 +08:00
commit 89b664750b

View File

@ -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"),
})