public virtual string PostRequest(string body) { string result = ""; try { result = GlobalWebRequestHelper.HttpPostRequest(this.Cur_Job.weburl, body); } catch (Exception ex) { Log4netUtil.Error("作业【" + this.Cur_Job.name + "】PostRequest推送异常:" + ex.Message + "|参数:" + body, ex); } return(result); }
public override string WebRequest() { string result = ""; try { result = this.Cur_Job.servermethod.ToLower() == "get" ? GlobalWebRequestHelper.HttpGetRequest(this.Cur_Job.weburl, this.Cur_Job.GetExcuteCondition()) : GlobalWebRequestHelper.HttpPostRequest(this.Cur_Job.weburl, this.Cur_Job.GetExcuteCondition()); } catch (Exception ex) { Log4netUtil.Error("作业【" + this.Cur_Job.name + "】执行WebRequest异常:" + ex.Message, ex); result = ""; } return(result); }