Commit c087e8c7 by 杨树贤

优化

parent 6a8ec864
Showing with 12 additions and 0 deletions
...@@ -77,6 +77,18 @@ func (ts *TagsService) GetLyTags(sku model.LySku) (goodsTags model.GoodsTag) { ...@@ -77,6 +77,18 @@ func (ts *TagsService) GetLyTags(sku model.LySku) (goodsTags model.GoodsTag) {
goodsTags.GoodsLabelName = goodsLabel goodsTags.GoodsLabelName = goodsLabel
goodsTags.GoodsLabel = goodsLabelType goodsTags.GoodsLabel = goodsLabelType
//系统打的标签
systemTagArr := gjson.Get(goodsTagsStr, "tags").Array()
if len(systemTagArr) > 0 {
for _, tagIdResult := range systemTagArr {
tagId := int(tagIdResult.Int())
tags = append(tags, tagId)
if tagName, ok := vars.GoodsTags[tagId]; ok {
tagNames = append(tagNames, tagName)
}
}
}
//自定义标签 //自定义标签
customerTag := gjson.Get(goodsTagsStr, "customer_tag").String() customerTag := gjson.Get(goodsTagsStr, "customer_tag").String()
if customerTag != "" { if customerTag != "" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment