Explorar o código

新增regatherdata数据来源

maxiaoshan %!s(int64=2) %!d(string=hai) anos
pai
achega
a9994b7c2d
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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,