durow/UEditorNetCore

Crawler在fetch远程图片的时候,如果图片src后面带的有参数的时候会保存错误

Opened this issue · 0 comments

例如:http://news.163.com/17/0113/10/CALDUGQM000187VE.html 这里面的图片带有参数
可以在request前添加
if(this.SourceUrl.Contains("?"))
{
int i = this.SourceUrl.LastIndexOf("?");
this.SourceUrl = this.SourceUrl.Remove(i, this.SourceUrl.Length - i);
}