added demo for general spiders

This commit is contained in:
marvzhang
2020-02-03 10:30:04 +08:00
parent fe7610af3b
commit 0d7b97ead5
4 changed files with 54 additions and 7 deletions

View File

@@ -317,7 +317,7 @@ func InitSpiderService() error {
// 添加该爬虫到数据库
spider = model.Spider{
Id: bson.NewObjectId(),
Name: configData.Name,
Name: spiderName,
DisplayName: configData.DisplayName,
Type: constants.Customized,
Col: configData.Col,