News showEntity = null; List<Spider_url> childrens = new Spider_urlBiz().FindEntities("pid=" + url.Id); foreach (var c in childrens) { var csu = new Spider_urltplBiz().FindEntities("url=‘" + c.Url + "‘ and tplid=154"); if (csu.Count > 0) { foreach (var cs in csu) { content = new SpiderFile().GetBreakContent(cs.Url, cs.Tplid); if (content == "") { continue; } var cResult = Serializer.Deserialize<BreakResult>(content); if (cResult.Body != "") { var list = new Spider_url2newsBiz().FindEntities("url=‘" + cs.Url + "‘"); if (list.Count > 0) { showEntity = new News { Id = list[0].Newsid }; break; }
时间: 2024-10-12 22:10:33