|
@@ -896,7 +896,9 @@ func (f *Front) UpdateESP() {
|
|
|
b, err := spider.UpdateSpiderByCodeState(code, "6", qu.IntAll((*one)["event"])) //下架
|
|
|
if b && err == nil {
|
|
|
//历史节点下架为了避免线上运行爬虫待完成时改为7000采集历史,但是又转到其他平台,导致原线上运行节点爬虫并未下线,心跳异常
|
|
|
- b, err = spider.UpdateSpiderByCodeState(code, "6", qu.IntAll((*one)["historyevent"]))
|
|
|
+ if historyevent := (*one)["historyevent"]; historyevent != nil {
|
|
|
+ b, err = spider.UpdateSpiderByCodeState(code, "6", qu.IntAll(historyevent))
|
|
|
+ }
|
|
|
if b && err == nil {
|
|
|
set["state"] = 0 //更新状态
|
|
|
set["luauser"] = map[string]interface{}{
|