🎨 update redis storage time

This commit is contained in:
landaiqing
2024-09-05 17:11:30 +08:00
parent 01305c2fa7
commit b3ae27dd20
2 changed files with 3 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ func (ClientAPI) GenerateClientId(c *gin.Context) {
}
// 生成新的客户端ID
v1 := uuid.NewV1()
err := redis.Set(constant.UserLoginClientRedisKey+ip, v1.String(), time.Hour*24*30).Err()
err := redis.Set(constant.UserLoginClientRedisKey+ip, v1.String(), time.Hour*24*7).Err()
if err != nil {
global.LOG.Error(err)
return