public static void method_308(CmsForm cmsForm, string string_96, CouponBean couponBean) { try { string_96 = SendUtil.method_144(cmsForm, string_96); string_96 = string_96.Replace("</span>", "</SPAN>").Replace("</div>", "</DIV>").Replace("<img", "<IMG").Replace("\n", "").Replace("\r", "").Replace("<br>", "\n").Replace("<BR>", "\n").Replace("<BR", "\n<BR").Replace("</DIV>", "\n").Replace("</SPAN>", "\n").Replace("</P>", "\n").Replace("</p>", "\n"); //string_96 = .ᜄ(string_96); SendUtil.method_309(cmsForm, SendUtil.method_142(string_96), couponBean, 3); string_96 = SendUtil.method_143(cmsForm, string_96); string_96 = string_96.Replace("{image}", "<IMG src=\"").Replace("{/image}", "\">"); string_96 = string_96.Replace("\n", "<BR>"); couponBean.content = string_96; } catch (Exception exception) { LogUtil.log_call(cmsForm, string.Concat("[transCouponItemCmbToTwo]出错:", exception.ToString())); } }
public static void method_309(CmsForm cmsForm, string content, CouponBean couponBean, int int_28) { try { content = content.Replace(" ", " ").Replace("&", "&"); foreach (Match match in (new Regex(Constants.regex_url)).Matches(content)) { string str = match.Value.ToString(); if (!str.Contains("uland.taobao.com")) { string str1 = TaobaoUtil.get_redirect_url(str, str); if (str1.Contains("uland.taobao.com")) { couponBean.uland_url = str1; } Thread.Sleep(200); } else { couponBean.uland_url = str; } } } catch (Exception exception1) { Exception exception = exception1; if ((!exception.ToString().Contains("System.Net.WebException") ? true : int_28 >= 5)) { LogUtil.log_call(cmsForm, string.Concat("[checkCouponAndItemCmbUrl]出错:", exception.ToString())); } else { LogUtil.log_call(cmsForm, "网络一时问题,正在重试。。。。"); Thread.Sleep(1200); int_28++; SendUtil.method_309(cmsForm, content, couponBean, int_28); } } }