wangshan 9 сар өмнө
parent
commit
51236bee25

+ 3 - 0
jyBXCore/rpc/service/purchase.go

@@ -156,6 +156,9 @@ func (p *Purchase) PurchaseListFormat(res []map[string]interface{}) (list []*bxc
 	for _, rv := range res {
 		logx.Info("title:", MC.InterfaceToStr(rv["title"]))
 		id := MC.InterfaceToStr(rv["source_id"]) //拆分后 多条数据会来自一条bidding数据嘛,把bidding的id记一个source_id;mongo 库中bidding的_id
+		if id == "" {
+			continue
+		}
 		area := MC.InterfaceToStr(rv["area"])
 		city := MC.InterfaceToStr(rv["city"])
 		district := MC.InterfaceToStr(rv["district"])