少年修仙传客户端代码仓库
client_linchunjie
2019-05-17 f8ebc6dabe6d4d5ed32fc4322f0aa8ae6214311d
System/Debug/DebugUtility.cs
@@ -46,12 +46,18 @@
        if (debugAccount)
        {
            var parentDirectory = Directory.GetParent(Application.persistentDataPath);
            var content = File.ReadAllText(parentDirectory + "/Debug");
            if (!string.IsNullOrEmpty(content))
            if (Application.isMobilePlatform)
            {
                var json = JsonMapper.ToObject<DebugBranch>(File.ReadAllText(parentDirectory + "/Debug"));
                debugBranch = json.branch;
                var parentDirectory = Directory.GetParent(Application.persistentDataPath);
                if (File.Exists(parentDirectory + "/Debug"))
                {
                    var content = File.ReadAllText(parentDirectory + "/Debug");
                    if (!string.IsNullOrEmpty(content))
                    {
                        var json = JsonMapper.ToObject<DebugBranch>(File.ReadAllText(parentDirectory + "/Debug"));
                        debugBranch = json.branch;
                    }
                }
            }
        }