有效期
This commit is contained in:
parent
60da94bc48
commit
df6ca36956
@ -38,6 +38,10 @@ func (r *SystemTimeService) CheckVoteValidStatus() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
if duration > 5*time.Minute {
|
||||
duration = 5 * time.Minute
|
||||
}
|
||||
|
||||
// 添加缓存
|
||||
_, err = global.Redis.Set(context.Background(), redisKey, "1", duration).Result()
|
||||
if err != nil {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user