fix 重复获取爬虫的问题

This commit is contained in:
陈景阳
2019-09-27 12:07:38 +08:00
parent 59fcf7e9b0
commit 424e2a5e14

View File

@@ -179,6 +179,10 @@ func PutSpider(c *gin.Context) {
FileId: fid,
}
_ = spider.Add()
} else {
// 更新file_id
spider.FileId = fid
_ = spider.Save()
}
c.JSON(http.StatusOK, Response{