Sfoglia il codice sorgente

优化内存占用

xuzhiheng 9 mesi fa
parent
commit
18748b9ae7
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      field_sync/task.go

+ 2 - 2
field_sync/task.go

@@ -398,7 +398,7 @@ func doIndex(infos []map[string]interface{}, bkey, stype string) int {
 		// 2024-02-21 徐志恒 情报标签字段
 		toptype := util.ObjToString(tmp["toptype"])
 		subtype := util.ObjToString(tmp["subtype"])
-		buyerclass := util.ObjToString(compare["buyerclass"])
+		buyerclass := util.ObjToString(update["buyerclass"])
 		if buyerclass != "" {
 			update["buyer_type"] = getStr(buyerclass)
 		}
@@ -407,7 +407,7 @@ func doIndex(infos []map[string]interface{}, bkey, stype string) int {
 			update["tag_set"] = getTagSet(tmp, compare)
 		}
 		if len(update) > 0 {
-			log.Println("保存bidding区域 省", update["area"], " 市 ", update["city"], " 区 ", update["district"], " id ", tid)
+			log.Println("保存bidding区域 省", update["area"], " 市 ", update["city"], " 区 ", update["district"], " buyerclass ", update["buyerclass"], update["buyer_type"], " id ", tid)
 			if len(del) > 0 {
 				bidUpdate = append(bidUpdate, []map[string]interface{}{{
 					"_id": tmp["_id"],