public static void SaveJsonText(string json, string savePath, bool isCompress = false) { if (isCompress) { WriteAllBytes(savePath, ZipTool.Compress(Encoding.UTF8.GetBytes(json))); } else { WriteAllText(savePath, json); } }