maxiaoshan 2 years ago
parent
commit
9f89301c61
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/spider/spider.go

+ 1 - 0
src/spider/spider.go

@@ -1029,6 +1029,7 @@ func (s *Spider) DownloadDetail(reload bool, isHistory bool) {
 			//更新数据
 			if len(updateArr) > 0 {
 				MgoS.UpdateBulk(coll, updateArr...)
+				updateArr = [][]map[string]interface{}{}
 			}
 			close(spChan) //关闭通道
 			//释放sp对象(保留主线程sp,IsMainThread=true)