mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-29 18:00:51 +01:00
fix bug
This commit is contained in:
@@ -116,7 +116,7 @@ func PublishSpider(spider model.Spider) {
|
||||
// 查询gf file,不存在则删除
|
||||
gfFile := model.GetGridFs(spider.FileId)
|
||||
if gfFile == nil {
|
||||
_ = model.RemoveSpider(spider.FileId)
|
||||
_ = model.RemoveSpider(spider.Id)
|
||||
return
|
||||
}
|
||||
spiderSync := spider_handler.SpiderSync{
|
||||
|
||||
@@ -93,7 +93,6 @@ func (s *SpiderSync) Download() {
|
||||
}
|
||||
}
|
||||
// 创建临时文件
|
||||
|
||||
tmpFilePath := filepath.Join(tmpPath, randomId.String()+".zip")
|
||||
tmpFile := utils.OpenFile(tmpFilePath)
|
||||
defer tmpFile.Close()
|
||||
|
||||
Reference in New Issue
Block a user