Browse Source

修正bug

懒得勤快 5 years ago
parent
commit
1b7358462d

File diff suppressed because it is too large
+ 0 - 0
src/Masuit.MyBlogs.Core/App_Data/ban.txt


+ 1 - 1
src/Masuit.MyBlogs.Core/Common/CommonHelper.cs

@@ -292,7 +292,7 @@ namespace Masuit.MyBlogs.Core.Common
             var doc = new HtmlDocument();
             doc.LoadHtml(html);
             var summary = doc.DocumentNode.Descendants("p").FirstOrDefault(n => n.InnerText.Length > min)?.InnerText ?? "没有摘要";
-            if (summary.Length > 150)
+            if (summary.Length > length)
             {
                 return summary.Substring(0, length) + "...";
             }

Some files were not shown because too many files changed in this diff