Commit 3cbcce00 authored by hujiebin's avatar hujiebin

每日最多1800经验 = 18个10分钟 = 180分钟

parent 3ffdd810
...@@ -144,8 +144,8 @@ func IncrGroupPowerExpOnMic(model *domain.Model, groupPowerId, userId mysql.ID) ...@@ -144,8 +144,8 @@ func IncrGroupPowerExpOnMic(model *domain.Model, groupPowerId, userId mysql.ID)
return err return err
} }
model.Redis.Expire(model, key, time.Hour*24) // ttl 一天 model.Redis.Expire(model, key, time.Hour*24) // ttl 一天
// 每日最多1800经验 = 18分钟 // 每日最多1800经验 = 18个10分钟 = 180分钟
if minutes > 18 { if minutes > 180 {
return nil return nil
} }
if minutes%10 == 0 { if minutes%10 == 0 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment