From d37a6ccbf5dfe3631c41b7b24b3d2a42d91ede11 Mon Sep 17 00:00:00 2001 From: j502647092 Date: Mon, 27 Jul 2015 17:13:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E6=96=87=E9=98=BF=E9=87=8C=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=98=AF=E4=B8=AA=E5=9D=91....?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Frm_Main.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Frm_Main.cs b/Frm_Main.cs index b1cbf44..1c997b7 100644 --- a/Frm_Main.cs +++ b/Frm_Main.cs @@ -50,7 +50,6 @@ namespace EnAliKeywordSearch url = String.Format("http://www.alibaba.com/products/F0/{0}/{1}.html", HttpUtility.UrlEncode(key), i); else url = String.Format("http://s.1688.com/selloffer/offer_search.htm?keywords={0}&beginPage={1}", HttpUtility.UrlEncode(key), i); - string htmldoc = httpHelper.Get(url); if (string.IsNullOrEmpty(htmldoc)) { @@ -59,7 +58,8 @@ namespace EnAliKeywordSearch maybe = true; continue; } - if (htmldoc.Contains(HttpUtility.HtmlEncode(cpy))) + string encodecpy = HttpUtility.HtmlEncode(cpy); + if (htmldoc.Contains(encodecpy)) { pageinfo = "第" + i + "页"; break;