4
This commit is contained in:
parent
ee7b616af0
commit
27c0a750d0
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user