public void RequestThemes() { if (isLocal) { var path = Path.Combine(rootPath, "themes.json"); if (!File.Exists(path)) { ZLog.Warning("the file not exist that path = " + path); return; } var txt = File.ReadAllText(path); var list = ParseUtil.ParseThemes(txt, rootPath); DFNotifyManager.SendNotify(DFNotifyType.OnThemesUpdate, list); } else { string address = GetAddress(HttpAPIType.Themes); var json = new LitJson.JsonData { ["code"] = codes }; ZHttpController.Post(URL_Themes, address, json.ToString(), HttpCompleteHandler, true); } }