|
@@ -6,6 +6,7 @@ import (
|
|
|
"app.yhyue.com/moapp/jyInfo/rpc/model"
|
|
|
"app.yhyue.com/moapp/jyInfo/rpc/util"
|
|
|
"context"
|
|
|
+ "encoding/json"
|
|
|
"fmt"
|
|
|
"log"
|
|
|
"strings"
|
|
@@ -84,10 +85,13 @@ func (l *PublishInfoLogic) PublishInfo(in *consumerinfo.PublishInfoReq) (*consum
|
|
|
for _, s := range []string{"香港", "澳门", "台湾", "北京", "上海", "重庆", "天津", "钓鱼岛"} {
|
|
|
if strings.Contains(mc.InterfaceToStr(deliveryAddress["city"]), s) {
|
|
|
deliveryAddress["city"] = ""
|
|
|
- in.DeliveryAddress = mc.InterfaceToStr(deliveryAddress)
|
|
|
+ jsonData, err := json.Marshal(deliveryAddress)
|
|
|
+ if err != nil {
|
|
|
+ fmt.Println("Error marshalling JSON:", err)
|
|
|
+ }
|
|
|
+ in.DeliveryAddress = string(jsonData)
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
publishData["deliveryAddress"] = in.DeliveryAddress //交易地址
|
|
|
if in.Budget != "" {
|
|
|
publishData["budget"] = mc.Float64All(in.Budget) // 预算单位元
|