using System; using Newtonsoft.Json.Linq; using prBrowser.Weblogic; namespace prBrowser { class UpdateList { /// /// 判断是否存在文件更新进行更新 /// /// /// public string FTPCheckUpdate(string input) { JObject jObject = new JObject(); try { JObject jsonObj = JObject.Parse(input); } catch (Exception ex2) { jObject.Add("errorCode", (JToken)"-1"); jObject.Add("errorMessage", (JToken)ex2.Message); } string output = ""; try { FTPHelperNew ftpObj = new FTPHelperNew(); output = ftpObj.doUpdate(input); } catch (Exception ex) { output = ex.Message; } return output; } } }