Commit 38c7f6d3 by mushishixian

debug

parent 4f24663d
Showing with 1 additions and 1 deletions
...@@ -279,6 +279,7 @@ func (ls *LyService) GetCoefficient(sku model.LySku) model.LySku { ...@@ -279,6 +279,7 @@ func (ls *LyService) GetCoefficient(sku model.LySku) model.LySku {
} }
if !hasCoefficient && !hasDefault { if !hasCoefficient && !hasDefault {
logger.Error("%s", "系数获取异常,供应商:"+common.ToString(sku.SupplierId)) logger.Error("%s", "系数获取异常,供应商:"+common.ToString(sku.SupplierId))
sku.Content = "系数获取异常,供应商:"+common.ToString(sku.SupplierId)
return sku return sku
} }
...@@ -401,7 +402,6 @@ func (ls *LyService) CombineSup(sku model.LySku, spuStr string) model.LySku { ...@@ -401,7 +402,6 @@ func (ls *LyService) CombineSup(sku model.LySku, spuStr string) model.LySku {
sku.SpuDetail = gjson.Get(spuStr,"spu_detail").String() sku.SpuDetail = gjson.Get(spuStr,"spu_detail").String()
sku.Status = int(gjson.Get(spuStr,"status").Int()) sku.Status = int(gjson.Get(spuStr,"status").Int())
sku.Encap = gjson.Get(spuStr,"encap").String() sku.Encap = gjson.Get(spuStr,"encap").String()
sku.Content = gjson.Get(spuStr,"spu_name").String()
return sku return sku
} }
......
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