|
@@ -426,6 +426,7 @@ func UpdateSpiderByCodeState(code, state string) (bool, error) {
|
|
|
if ok {
|
|
|
if !sp.Stop { //脚本未执行
|
|
|
sp.Stop = true
|
|
|
+ sp.ScriptStop = true //专用于findlist心跳记录
|
|
|
}
|
|
|
}
|
|
|
as.Delete(code)
|
|
@@ -667,7 +668,7 @@ func UpdateSpiderByCodeState(code, state string) (bool, error) {
|
|
|
}
|
|
|
}
|
|
|
//2、Allspiders2对应7100、7110、7400上架采集三级页数据(Allspiders2三级页爬虫集合)
|
|
|
- if util.Config.Modal == 1 { //高性能老模式不根据列表页数据采三级页(7000、7410)
|
|
|
+ if util.Config.Modal == 1 {
|
|
|
//Allspiders2
|
|
|
if spd2, ok2 := Allspiders2.Load(k); ok2 { //对应脚本已存在,更新
|
|
|
sp2 := spd2.(*Spider)
|
|
@@ -690,7 +691,6 @@ func UpdateSpiderByCodeState(code, state string) (bool, error) {
|
|
|
sp2.UserEmail = v["createuseremail"]
|
|
|
sp2.MUserName = v["modifyuser"]
|
|
|
sp2.MUserEmail = v["modifyemail"]
|
|
|
- sp2.Stop = false
|
|
|
sp2.IsMainThread = true //多线程采集时使用
|
|
|
go sp2.DownloadHighDetail(true) //根据列表页数据下载三级页
|
|
|
Allspiders2.Store(k, sp2)
|