Browse Source

新增regatherdata数据来源

maxiaoshan 2 năm trước cách đây
mục cha
commit
a9994b7c2d
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      src/spider/store.go

+ 5 - 0
src/spider/store.go

@@ -213,6 +213,11 @@ func SaveErrorData(modifyuser string, pd map[string]interface{}, err interface{}
 			json.Unmarshal([]byte(jsondata), &tmp)
 			pd["jsondata"] = tmp
 		}
+		coll := "spider_highlistdata"
+		if lu.Config.Modal == 0 {
+			coll = "spider_listdata"
+		}
+		pd["coll"] = coll
 		//mgu.Save("regatherdata", "spider", "spider", pd)
 		query := map[string]interface{}{
 			"href": href,