|
@@ -57,13 +57,13 @@ func GetAreaHotBidding(areaCode string, num int) []*service.InfoList {
|
|
|
}
|
|
|
|
|
|
// GetCityBidding 获取城市下的标讯信息
|
|
|
-func GetCityBidding(areaCode string, num int) []*service.InfoList {
|
|
|
- areaNode := service.JyBxSeoAreaRoot.GetNodeByCode(areaCode)
|
|
|
- if areaNode == nil || areaNode.Type != 2 {
|
|
|
+func GetCityBidding(areaCode, cityCode string, num int) []*service.InfoList {
|
|
|
+ cityNode := service.JyBxSeoAreaRoot.GetNodeByCode(areaCode).GetChildNode(cityCode)
|
|
|
+ if cityNode == nil || cityNode.Type != 2 {
|
|
|
return nil
|
|
|
}
|
|
|
- query := service.NewBiddingQuery().EquipArea(areaNode).QueryState(consts.CityBidding)
|
|
|
- rData, err := query.GetOnceData(context.Background(), num, "GetCityBidding", service.JyBxSeoAreaRoot.GetData)
|
|
|
+ query := service.NewBiddingQuery().EquipArea(cityNode).QueryState(consts.CityBidding)
|
|
|
+ rData, err := query.GetOnceData(context.Background(), num, "GetCityBiddingNew", service.JyBxSeoAreaRoot.GetData)
|
|
|
if err != nil {
|
|
|
return nil
|
|
|
}
|