321
This commit is contained in:
parent
98bcbc5c95
commit
40f742d5f8
|
|
@ -13,9 +13,12 @@ using System;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
using Aliyun.OSS;
|
using Aliyun.OSS;
|
||||||
using Aliyun.OSS.Util;
|
using Aliyun.OSS.Util;
|
||||||
|
|
||||||
using CoreCms.Net.Caching.Manual;
|
using CoreCms.Net.Caching.Manual;
|
||||||
using CoreCms.Net.Configuration;
|
using CoreCms.Net.Configuration;
|
||||||
using CoreCms.Net.IRepository;
|
using CoreCms.Net.IRepository;
|
||||||
|
|
@ -24,14 +27,19 @@ using CoreCms.Net.IServices;
|
||||||
using CoreCms.Net.Model.Entities;
|
using CoreCms.Net.Model.Entities;
|
||||||
using CoreCms.Net.Model.ViewModels.Options;
|
using CoreCms.Net.Model.ViewModels.Options;
|
||||||
using CoreCms.Net.Model.ViewModels.UI;
|
using CoreCms.Net.Model.ViewModels.UI;
|
||||||
|
|
||||||
using COSXML;
|
using COSXML;
|
||||||
using COSXML.Auth;
|
using COSXML.Auth;
|
||||||
|
|
||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.Extensions.FileProviders;
|
using Microsoft.Extensions.FileProviders;
|
||||||
|
|
||||||
using Qiniu.Storage;
|
using Qiniu.Storage;
|
||||||
using Qiniu.Util;
|
using Qiniu.Util;
|
||||||
|
|
||||||
using SixLabors.ImageSharp;
|
using SixLabors.ImageSharp;
|
||||||
|
|
||||||
using ToolGood.Words;
|
using ToolGood.Words;
|
||||||
|
|
||||||
namespace CoreCms.Net.Services
|
namespace CoreCms.Net.Services
|
||||||
|
|
@ -76,7 +84,10 @@ namespace CoreCms.Net.Services
|
||||||
}
|
}
|
||||||
|
|
||||||
WordsMatch wordsSearch = new WordsMatch();
|
WordsMatch wordsSearch = new WordsMatch();
|
||||||
wordsSearch.SetKeywords(cache.Split('|', StringSplitOptions.RemoveEmptyEntries));
|
//"法.轮.功"
|
||||||
|
var it = cache.Split('|', StringSplitOptions.RemoveEmptyEntries).Where<string>(x => !string.IsNullOrWhiteSpace(x) && !x.Contains(".")).ToArray();
|
||||||
|
|
||||||
|
wordsSearch.SetKeywords(it);
|
||||||
|
|
||||||
var t = wordsSearch.Replace(oldString, symbol);
|
var t = wordsSearch.Replace(oldString, symbol);
|
||||||
return t;
|
return t;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user