using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Lskj.SmsSending2 { public sealed class NewEmp { /// /// 同步数据 /// /// 没有特殊说明,传入 public static string PostMethodToObj(string url, string jsonObj) { try { return SynchronousOven.HttpUtil.PostUtil.PostUrl(url, jsonObj); } catch (Exception) { throw; //return JsonConvert.SerializeObject(new ResponseMode{ code = "-1", errorMsg = "非法操作." }); } } /// /// 同步数据 /// public static string GetUrl(string url) { try { return SynchronousOven.HttpUtil.GetUtil.GetJson(url); } catch (Exception ex) { throw; //return JsonConvert.SerializeObject(new ResponseMode{ code = "-1", errorMsg = "非法操作." }); } } public class ResponseMode { public int ret; public string msg; } } }