有效期

This commit is contained in:
wucongxing8150 2025-01-02 09:13:36 +08:00
parent 311cda51b2
commit b9b45b1789

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 {