Commit 78194c2b by 杨树贤

品牌包装

parent 77740799
Showing with 9 additions and 1 deletions
......@@ -162,6 +162,7 @@ type SpuExtra struct {
TransformedWeight float64 `json:"weight"`
Width string `json:"width" bson:"width"`
Length string `json:"length" bson:"length"`
BrandPack string `json:"brand_pack" bson:"brand_pack"`
}
type CustomPrice struct {
......@@ -284,7 +285,8 @@ func InitSkuData(sku string) (data LySku) {
data.Coo = gjson.Get(sku, "coo").String()
data.AbilityLevel = int(gjson.Get(sku,"ability_level").Int())
data.AbilityLevel = int(gjson.Get(sku, "ability_level").Int())
return
}
......
......@@ -137,6 +137,12 @@ func (ls *LyService) LyGoodsDetail(ctx *gin.Context, goodsIds []string, ch chan
sku.SpuExtra = ls.GetSpuExtra(sku.SpuId)
}
brandPack := gjson.Get(spu, "brand_pack").String()
if brandPack != "" {
sku.SpuExtra.BrandPack = brandPack
}
//获取供应链标准品牌
//什么是供应链的标准品牌 供应链那边报关的时候要求他们的标准品牌,所以要吧自己的品牌映射上去
//继来那边对接的标准品牌(下单的时候)
......
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