Merge branch 'develop' of gitee.com:fusenpack/fusenapi into develop
This commit is contained in:
commit
a1f170b1ff
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user