|
@@ -80,7 +80,15 @@ func (l *PublishInfoLogic) PublishInfo(in *consumerinfo.PublishInfoReq) (*consum
|
|
|
publishData["industry"] = strings.Join(in.Industry, ",") //项目行业,多个逗号分隔
|
|
|
publishData["buyer"] = in.Buyer //采购单位
|
|
|
publishData["winner"] = in.Winner //中标单位
|
|
|
- publishData["deliveryAddress"] = in.DeliveryAddress //交易地址
|
|
|
+ deliveryAddress := mc.StringToMap(in.DeliveryAddress)
|
|
|
+ for _, s := range []string{"香港", "澳门", "台湾", "北京", "上海", "重庆", "天津", "钓鱼岛"} {
|
|
|
+ if strings.Contains(mc.InterfaceToStr(deliveryAddress["city"]), s) {
|
|
|
+ deliveryAddress["city"] = ""
|
|
|
+ in.DeliveryAddress = mc.InterfaceToStr(deliveryAddress)
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ publishData["deliveryAddress"] = in.DeliveryAddress //交易地址
|
|
|
if in.Budget != "" {
|
|
|
publishData["budget"] = mc.Float64All(in.Budget) // 预算单位元
|
|
|
}
|