4
This commit is contained in:
@@ -137,6 +137,10 @@ func (b *System) PutSystemTime(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
if duration > 5*time.Minute {
|
||||
duration = 5 * time.Minute
|
||||
}
|
||||
|
||||
// 添加缓存
|
||||
_, err = global.Redis.Set(c, redisKey, "1", duration).Result()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user