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