Pārlūkot izejas kodu

luaconfig表迁移

maxiaoshan 2 gadi atpakaļ
vecāks
revīzija
4cd9d077e6
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/spider/handler.go

+ 1 - 1
src/spider/handler.go

@@ -210,7 +210,7 @@ func QueueUpScriptList() {
 					if sp != nil && sp.IsHistoricalMend { //下载历史的爬虫执行一次后删除
 						DelLen++
 						LoopListPath.Delete(key)
-						MgoEB.Update("luaconfig", map[string]interface{}{"code": code}, map[string]interface{}{"$set": map[string]interface{}{"state": 6}}, false, false)
+						b = MgoEB.Update("luaconfig", map[string]interface{}{"code": code}, map[string]interface{}{"$set": map[string]interface{}{"state": 6}}, false, false)
 						logger.Debug("Delete History Code:", code, b)
 					}
 				}