fly 1 年之前
父节点
当前提交
ca4cbb794f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Interfaces/Cache/CacheManager.cs

+ 2 - 2
Interfaces/Cache/CacheManager.cs

@@ -102,9 +102,9 @@ namespace WingServerCommon.Interfaces.Cache
                 result = _loadCacheFromDbWithId(documentId);
                 if (result == null)
                 {
-                    throw new InvalidOperationException($"not found from Db with id:{documentId}");
+                    Logger.WriteLineWarn($"not found from Db with id:{documentId}");
+                    return result;
                 }
-
                 CacheList.Add(result);
                 lock (_dirtyCodes)
                 {