Explorar el Código

Merge branch 'develop' of http://163.228.141.122:3000/TEAMMODEL/TEAMModelOS into develop

XW hace 7 meses
padre
commit
107dfc3775
Se han modificado 1 ficheros con 5 adiciones y 9 borrados
  1. 5 9
      TEAMModelOS/Controllers/System/BlobController.cs

+ 5 - 9
TEAMModelOS/Controllers/System/BlobController.cs

@@ -997,11 +997,9 @@ namespace TEAMModelOS.Controllers
                                 }
                                 }
                             }
                             }
                             //为节省服务器开销, 限制只能一天清理一次
                             //为节省服务器开销, 限制只能一天清理一次
-#if DEBUG
-                            _azureRedis.GetRedisClient(8).StringSet($"Blob:ScanResult:{scope}:{containerName}", new List<UnLink>().ToJsonString(), expiry: new TimeSpan(0, 0, 30));
-#else
-                        _azureRedis.GetRedisClient(8).StringSet($"Blob:ScanResult:{scope}:{containerName}", new List<UnLink>().ToJsonString(), expiry: new TimeSpan(0, 3, 0));
-#endif
+ 
+                            _azureRedis.GetRedisClient(8).StringSet($"Blob:ScanResult:{scope}:{containerName}", new List<UnLink>().ToJsonString(), expiry: new TimeSpan(0, 3, 0));
+ 
                             HashSet<string> root = null;
                             HashSet<string> root = null;
                             if (_option.Location.Contains("Test", StringComparison.OrdinalIgnoreCase) || _option.Location.Contains("Dep", StringComparison.OrdinalIgnoreCase))
                             if (_option.Location.Contains("Test", StringComparison.OrdinalIgnoreCase) || _option.Location.Contains("Dep", StringComparison.OrdinalIgnoreCase))
                             {
                             {
@@ -1448,11 +1446,9 @@ namespace TEAMModelOS.Controllers
                 summary.Add(new { prefix = x.Key, count = count, size = size });
                 summary.Add(new { prefix = x.Key, count = count, size = size });
             });
             });
             //为节省服务器开销, 限制只能一天清理一次
             //为节省服务器开销, 限制只能一天清理一次
-#if DEBUG
-            _azureRedis.GetRedisClient(8).StringSet($"Blob:ScanResult:{scope}:{containerName}", unLinks.ToJsonString(), expiry: new TimeSpan(0, 0,30));
-#else
+
              _azureRedis.GetRedisClient(8).StringSet($"Blob:ScanResult:{scope}:{containerName}", unLinks.ToJsonString(), expiry: new TimeSpan(0, 3, 0));
              _azureRedis.GetRedisClient(8).StringSet($"Blob:ScanResult:{scope}:{containerName}", unLinks.ToJsonString(), expiry: new TimeSpan(0, 3, 0));
-#endif
+ 
             var ttlVals = await _azureRedis.GetRedisClient(8).KeyExpireTimeAsync($"Blob:ScanResult:{scope}:{containerName}");
             var ttlVals = await _azureRedis.GetRedisClient(8).KeyExpireTimeAsync($"Blob:ScanResult:{scope}:{containerName}");
             if (ttlVals.HasValue)
             if (ttlVals.HasValue)
             {
             {