mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
Update GameConfig.cs
This commit is contained in:
@@ -68,7 +68,7 @@ namespace TEngine
|
|||||||
{
|
{
|
||||||
_instance._versionConfig = JsonUtility.FromJson<VersonConfig>(configContent);
|
_instance._versionConfig = JsonUtility.FromJson<VersonConfig>(configContent);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch
|
||||||
{
|
{
|
||||||
TLogger.LogError($"configContent Conver failed,content{configContent}");
|
TLogger.LogError($"configContent Conver failed,content{configContent}");
|
||||||
return false;
|
return false;
|
||||||
@@ -204,7 +204,7 @@ namespace TEngine
|
|||||||
{
|
{
|
||||||
innerVersionConfig = JsonUtility.FromJson<VersonConfig>(innerVersion);
|
innerVersionConfig = JsonUtility.FromJson<VersonConfig>(innerVersion);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch
|
||||||
{
|
{
|
||||||
//如果反序列化失败了,就默认返回给业务逻辑需要解压了
|
//如果反序列化失败了,就默认返回给业务逻辑需要解压了
|
||||||
TLogger.LogError($"GameConfig,JsonUtility.FromJson failed,{innerVersion}");
|
TLogger.LogError($"GameConfig,JsonUtility.FromJson failed,{innerVersion}");
|
||||||
|
Reference in New Issue
Block a user