fix 创建目录错误的问题

This commit is contained in:
陈景阳
2019-10-07 12:21:32 +08:00
parent 17442fc893
commit dabf5cacf1
2 changed files with 2 additions and 1 deletions

View File

@@ -145,6 +145,7 @@ func PublishSpider(spider model.Spider) {
// md5值不一样则下载
md5Str := utils.ReadFileOneLine(md5)
if gfFile.Md5 != md5Str {
log.Infof("md5 is different, gf-md5:%s, file-md5:%s", gfFile.Md5, md5Str)
spiderSync.RemoveSpiderFile()
spiderSync.Download()
spiderSync.CreateMd5File(gfFile.Md5)