mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-26 17:49:15 +01:00
fix 无法及时同步爬虫的问题
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
// 创建文件
|
||||
|
||||
Reference in New Issue
Block a user