浏览代码

fix:交付地址格式修改

duxin 8 月之前
父节点
当前提交
bacd84f02f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rpc/manager/internal/logic/infodetaillogic.go

+ 1 - 1
rpc/manager/internal/logic/infodetaillogic.go

@@ -75,7 +75,7 @@ func (l *InfoDetailLogic) InfoDetail(in *manager.InfoDetailReq) (*manager.InfoDe
 			infoData.JyPublishingMedia = common.Int64All(data["publishing_media"])
 			infoData.JyPublishingMedia = common.Int64All(data["publishing_media"])
 			infoData.RecommendedService = common.Int64All(data["recommended_service"])
 			infoData.RecommendedService = common.Int64All(data["recommended_service"])
 			deliveryAddress := common.StringToMap(common.InterfaceToStr(data["deliveryAddress"]))
 			deliveryAddress := common.StringToMap(common.InterfaceToStr(data["deliveryAddress"]))
-			infoData.DeliveryAddress = fmt.Sprintf(`%s%s%s%s`, deliveryAddress["area"], deliveryAddress["city"], deliveryAddress["districts"], deliveryAddress["detailsAddr"])
+			infoData.DeliveryAddress = fmt.Sprintf(`%s%s%s%s`, common.InterfaceToStr(deliveryAddress["area"]), common.InterfaceToStr(deliveryAddress["city"]), common.InterfaceToStr(deliveryAddress["districts"]), common.InterfaceToStr(deliveryAddress["detailsAddr"]))
 			if data["related_id"] != nil && common.IntAll(data["related_id"]) != 0 {
 			if data["related_id"] != nil && common.IntAll(data["related_id"]) != 0 {
 				related.Id = se.SE.EncodeString(common.InterfaceToStr(data["related_id"])) //关联信息id加密
 				related.Id = se.SE.EncodeString(common.InterfaceToStr(data["related_id"])) //关联信息id加密
 				related.Title = common.InterfaceToStr(data["relatedTitle"])
 				related.Title = common.InterfaceToStr(data["relatedTitle"])