fix 无法及时同步爬虫的问题

This commit is contained in:
陈景阳
2020-01-28 15:43:57 +08:00
parent 3e792a24d2
commit 4825653ae0
4 changed files with 45 additions and 34 deletions

View File

@@ -33,7 +33,14 @@ func ReadFileOneLine(fileName string) string {
return ""
}
return line
}
func GetSpiderMd5Str(file string) string {
md5Str := ReadFileOneLine(file)
// 去掉空格以及换行符
md5Str = strings.Replace(md5Str, " ", "", -1)
md5Str = strings.Replace(md5Str, "\n", "", -1)
return md5Str
}
// 创建文件