|
@@ -300,8 +300,12 @@ namespace FCS.Common
|
|
|
Stopwatch sw = new Stopwatch();
|
|
|
sw.Start();
|
|
|
var ip = model.IP.IsEmpty() ? GetIp() : model.IP;
|
|
|
- var httpItem = Mapper<HttpItem>(model);
|
|
|
- httpItem.WebProxy = new WebProxy(ip);
|
|
|
+ var httpItem = new HttpItem();
|
|
|
+ lock (locker)
|
|
|
+ {
|
|
|
+ httpItem=Mapper<HttpItem>(model);
|
|
|
+ httpItem.WebProxy = new WebProxy(ip);
|
|
|
+ }
|
|
|
var html = new HttpHelper().GetHtml(httpItem);
|
|
|
//对文本的检查
|
|
|
while ((model.IsCheckEmpty && html.Html.IsEmpty())
|