From 3457cdaf5d1b95c08567a4049586317205eb0e3d Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Sat, 21 Aug 2021 09:24:43 +0800 Subject: [PATCH] x --- models/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/user.go b/models/user.go index 99967e0..7bb8610 100644 --- a/models/user.go +++ b/models/user.go @@ -69,7 +69,7 @@ func NewActiveUser(class string, uid int, msgs ...interface{}) { } if first { db.Model(User{}).Select("count(id) as total").Where("active_at > ?", zero).Pluck("total", &total) - if (total[0]+1)%8 == 0 { + if (total[0]+1)%3 == 0 { db.Model(&u).Updates(map[string]interface{}{ "coin": gorm.Expr("coin+1"), })