mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
Merge pull request #763 from yaziming/fix/wrong-variable
Fix/wrong variable
This commit is contained in:
@@ -567,7 +567,7 @@ func UploadSpiderFromId(c *gin.Context) {
|
||||
// TODO: 与 UploadSpider 部分逻辑重复,需要优化代码
|
||||
// 爬虫ID
|
||||
spiderId := c.Param("id")
|
||||
if !bson.IsObjectIdHex(id) {
|
||||
if !bson.IsObjectIdHex(spiderId) {
|
||||
HandleErrorF(http.StatusBadRequest, c, "invalid id")
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user