Commit 5aaff80d by 杨树贤

修复名称逻辑

parent 7ee9495d
Showing with 4 additions and 1 deletions
......@@ -76,7 +76,10 @@ func (ls *LyService) LyGoodsDetail(ctx *gin.Context, goodsIds []string, ch chan
//获取商品名称
//1688就是mro的sku spuName和GoodsName不是一个东西,不能公用
if sku.GoodsName == "" && sku.SupplierId != 1688 {
if sku.GoodsName != "" && sku.SupplierId == 1688 {
sku.GoodsName = gjson.Get(spu, "spu_name").String()
}
if sku.GoodsName == "" {
sku.GoodsName = gjson.Get(spu, "spu_name").String()
}
......
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