Commit cd4c7fbe by 杨树贤

包装

parent fbc16f5e
Showing with 3 additions and 2 deletions
......@@ -92,6 +92,7 @@ type LySku struct {
Tariff float64 `json:"tariff"`
TariffFormat string `json:"tariff_format"`
AbilityLevel int `json:"ability_level"`
BrandPack string `json:"brand_pack"`
}
type DiscountRatio struct {
......@@ -162,7 +163,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"`
BrandPack string `json:"brand_pack" bson:"brand_pack"`
}
type CustomPrice struct {
......@@ -287,7 +288,6 @@ func InitSkuData(sku string) (data LySku) {
data.AbilityLevel = int(gjson.Get(sku, "ability_level").Int())
return
}
......
......@@ -140,6 +140,7 @@ func (ls *LyService) LyGoodsDetail(ctx *gin.Context, goodsIds []string, ch chan
brandPack := gjson.Get(spu, "brand_pack").String()
if brandPack != "" {
sku.SpuExtra.BrandPack = brandPack
sku.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