diff --git a/backend/routes/spider.go b/backend/routes/spider.go index d9b929a5..09d0c638 100644 --- a/backend/routes/spider.go +++ b/backend/routes/spider.go @@ -163,6 +163,12 @@ func PutSpider(c *gin.Context) { return } + // 同步到GridFS + if err := services.UploadSpiderToGridFsFromMaster(spider); err != nil { + HandleError(http.StatusInternalServerError, c, err) + return + } + c.JSON(http.StatusOK, Response{ Status: "ok", Message: "success",