Commit d8eab572 authored by liudong1993's avatar liudong1993

1 修复抓取图片问题

parent 4e40b8a5
......@@ -175,7 +175,7 @@ namespace TicketSpider.Spiders.ClassInRule
Directory.CreateDirectory(dirpath);
}
var fileBgPath = $"{dirpath}\\{DateTime.Now.Ticks}.png";
var fileBlockPath = $"{dirpath}\\{DateTime.Now.Ticks}.png";
var fileBlockPath = $"{dirpath}\\{DateTime.Now.Ticks + 1}.png";
bgPng.SaveAsFile(fileBgPath, ScreenshotImageFormat.Png);
blockPng.SaveAsFile(fileBlockPath, ScreenshotImageFormat.Png);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment