UpdateList.cs 753 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using Newtonsoft.Json.Linq;
  3. using prBrowser.Weblogic;
  4. namespace prBrowser
  5. {
  6. class UpdateList
  7. {
  8. /// <summary>
  9. /// 判断是否存在文件更新进行更新
  10. /// </summary>
  11. /// <param name="input"></param>
  12. /// <returns></returns>
  13. public string FTPCheckUpdate(string input)
  14. {
  15. JObject jObject = new JObject();
  16. try
  17. {
  18. JObject jsonObj = JObject.Parse(input);
  19. }
  20. catch (Exception ex2)
  21. {
  22. jObject.Add("errorCode", (JToken)"-1");
  23. jObject.Add("errorMessage", (JToken)ex2.Message);
  24. }
  25. string output = "";
  26. try
  27. {
  28. FTPHelperNew ftpObj = new FTPHelperNew();
  29. output = ftpObj.doUpdate(input);
  30. }
  31. catch (Exception ex)
  32. {
  33. output = ex.Message;
  34. }
  35. return output;
  36. }
  37. }
  38. }