diff --git a/server/product-template-tag/internal/logic/getproducttemplatetagslogic.go b/server/product-template-tag/internal/logic/getproducttemplatetagslogic.go index b3f9fd90..184de958 100644 --- a/server/product-template-tag/internal/logic/getproducttemplatetagslogic.go +++ b/server/product-template-tag/internal/logic/getproducttemplatetagslogic.go @@ -114,7 +114,7 @@ func (l *GetProductTemplateTagsLogic) GetProductTemplateTags(req *types.GetProdu for _, v := range resourceMetadataList { var metadata map[string]interface{} if v.Metadata != nil { - _ = json.Unmarshal([]byte(*v.Metadata), &metadata) + _ = json.Unmarshal(*v.Metadata, &metadata) } mapResourceMetadata[*v.ResourceUrl] = metadata } diff --git a/server/product/internal/logic/getrecommandproductlistlogic.go b/server/product/internal/logic/getrecommandproductlistlogic.go index 1adbd72a..339064f1 100644 --- a/server/product/internal/logic/getrecommandproductlistlogic.go +++ b/server/product/internal/logic/getrecommandproductlistlogic.go @@ -144,7 +144,7 @@ func (l *GetRecommandProductListLogic) GetRecommandProductList(req *types.GetRec for _, v := range resourceMetadataList { var metadata map[string]interface{} if v.Metadata != nil { - _ = json.Unmarshal([]byte(*v.Metadata), &metadata) + _ = json.Unmarshal(*v.Metadata, &metadata) } mapResourceMetadata[*v.ResourceUrl] = metadata } diff --git a/server/product/internal/logic/gettagproductlistlogic.go b/server/product/internal/logic/gettagproductlistlogic.go index dd376605..1213c414 100644 --- a/server/product/internal/logic/gettagproductlistlogic.go +++ b/server/product/internal/logic/gettagproductlistlogic.go @@ -217,7 +217,7 @@ func (l *GetTagProductListLogic) getProductRelationInfo(req getProductRelationIn for _, v := range resourceMetadataList { var metadata map[string]interface{} if v.Metadata != nil { - _ = json.Unmarshal([]byte(*v.Metadata), &metadata) + _ = json.Unmarshal(*v.Metadata, &metadata) } req.MapResourceMetadata[*v.ResourceUrl] = metadata } diff --git a/server/product/internal/logic/homepagerecommendproductlistlogic.go b/server/product/internal/logic/homepagerecommendproductlistlogic.go index 10c3ca44..9f5df115 100644 --- a/server/product/internal/logic/homepagerecommendproductlistlogic.go +++ b/server/product/internal/logic/homepagerecommendproductlistlogic.go @@ -177,7 +177,7 @@ func (l *HomePageRecommendProductListLogic) HomePageRecommendProductList(req *ty for _, v := range resourceMetadataList { var metadata map[string]interface{} if v.Metadata != nil { - _ = json.Unmarshal([]byte(*v.Metadata), &metadata) + _ = json.Unmarshal(*v.Metadata, &metadata) } mapResourceMetadata[*v.ResourceUrl] = metadata }