bug fix issue 603

This commit is contained in:
hantmac
2020-03-02 10:45:29 +08:00
parent 7a1b6918fb
commit 21943eb05f

View File

@@ -399,7 +399,7 @@ func UploadSpider(c *gin.Context) {
}
// 更新file_id
spider.FileId = fid
if err := spider.Add(); err != nil {
if err := spider.Save(); err != nil {
log.Error("add spider error: " + err.Error())
debug.PrintStack()
HandleError(http.StatusInternalServerError, c, err)