有效期

This commit is contained in:
wucongxing8150 2025-01-02 09:13:05 +08:00
parent 60da94bc48
commit df6ca36956

View File

@ -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 {