dodo hold 1 年之前
父節點
當前提交
58a0586c9e

File diff suppressed because it is too large
+ 0 - 0
molilian.api/Properties/PublishProfiles/https___ccr.ccs.tencentyun.com_shaobin.pubxml.user


+ 18 - 6
molilian.core/Core/taoke/UnionParseCore.cs

@@ -438,8 +438,12 @@ namespace molilian.core
                     var blacklist = config.jd_blacklist_regular.Split('\n')
                         .Where(line => !string.IsNullOrWhiteSpace(line))
                         .ToList();
-                    bool is_blacklist = AlimamaPlus.MatchOtherInfo(content, blacklist);
-                    if (is_blacklist)
+                    bool anyMatch = false;
+                    foreach (string pattern in blacklist)
+                    {
+                        if (Regex.IsMatch(content, pattern, RegexOptions.IgnoreCase)) anyMatch = true;
+                    }
+                    if (anyMatch)
                     {
                         result.success = false;
                         result.deeplink_url = string.Empty;
@@ -643,8 +647,12 @@ namespace molilian.core
                     var blacklist = config.pdd_blacklist_regular.Split('\n')
                     .Where(line => !string.IsNullOrWhiteSpace(line))
                     .ToList();
-                    bool is_blacklist = AlimamaPlus.MatchOtherInfo(content, blacklist);
-                    if (is_blacklist)
+                    bool anyMatch = false;
+                    foreach (string pattern in blacklist)
+                    {
+                        if (Regex.IsMatch(content, pattern, RegexOptions.IgnoreCase)) anyMatch = true;
+                    }
+                    if (anyMatch)
                     {
                         result.success = false;
                         result.deeplink_url = string.Empty;
@@ -746,8 +754,12 @@ namespace molilian.core
                     var blacklist = config.ks_blacklist_regular.Split('\n')
                     .Where(line => !string.IsNullOrWhiteSpace(line))
                     .ToList();
-                    bool is_blacklist = AlimamaPlus.MatchOtherInfo(content, blacklist);
-                    if (is_blacklist)
+                    bool anyMatch = false;
+                    foreach (string pattern in blacklist)
+                    {
+                        if (Regex.IsMatch(content, pattern, RegexOptions.IgnoreCase)) anyMatch = true;
+                    }
+                    if (anyMatch)
                     {
                         result.success = false;
                         result.deeplink_url = string.Empty;

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