未验证 提交 eed452aa 编写于 作者: T tanghai 提交者: GitHub

Merge pull request #32 from lin5/master

读写数据库报空
......@@ -13,7 +13,7 @@ namespace Hotfix
{
DBCacheComponent dbCacheComponent = Game.Scene.GetComponent<DBCacheComponent>();
if (message.CollectionName == "")
if (string.IsNullOrEmpty(message.CollectionName))
{
message.CollectionName = message.Disposers[0].GetType().Name;
}
......@@ -36,4 +36,4 @@ namespace Hotfix
}
}
}
}
\ No newline at end of file
}
......@@ -37,7 +37,7 @@ namespace Model
this.AddToCache(disposer, collectionName);
if (collectionName == "")
if (string.IsNullOrEmpty(collectionName))
{
collectionName = disposer.GetType().Name;
}
......@@ -57,7 +57,7 @@ namespace Model
public void AddToCache(Disposer disposer, string collectionName = "")
{
if (collectionName == "")
if (string.IsNullOrEmpty(collectionName))
{
collectionName = disposer.GetType().Name;
}
......@@ -147,4 +147,4 @@ namespace Model
return tcs.Task;
}
}
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册