public string Execute(string type) { bool connect = false; string path = string.Empty; try { //组建参数字典 Dictionary <string, string> Para = new Dictionary <string, string>(); Para.Add("access_token", ShareData.wxaccess_token); RPGetIp_list IpListInfo = HTMLHelper.Get <RPGetIp_list>(path, Para, ref connect); if (IpListInfo == null || IpListInfo.errcode != null) { //重新请求access_token new GetAccess_token().Execute(""); } } catch (Exception ex) { TracingHelper.Error(ex, typeof(GetIp_list), path + ex.ToString()); } return(""); }
public override string Execute(InfoBase json) { bool connect = false; try { //组建参数字典 Dictionary <string, string> Para = new Dictionary <string, string>(); Para.Add("access_token", ShareData.wxaccess_token); string path = RequestPath.CreatePath(RequestType.Ip_list); RPGetIp_list IpListInfo = HTMLHelper.Get <RPGetIp_list>(path, Para, ref connect); if (IpListInfo == null && IpListInfo.errcode != null) { //重新请求access_token //new GetAccess_token().Execute(""); } } catch (Exception ex) { TracingHelper.Error(ex, typeof(Getjoke), ex.Message); } return(""); }