12345678910111213141516171819202122232425262728293031323334353637383940 |
- using System;
- using Newtonsoft.Json.Linq;
- using prBrowser.Weblogic;
- namespace prBrowser
- {
- class UpdateList
- {
- /// <summary>
- /// 判断是否存在文件更新进行更新
- /// </summary>
- /// <param name="input"></param>
- /// <returns></returns>
- 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;
- }
- }
- }
|