Commit 7ee9495d by 杨树贤

获取名称

parent a4bc9f85
Showing with 4 additions and 3 deletions
......@@ -28,7 +28,7 @@ type Power struct {
}
/*
联营数据详情
联营数据详情
*/
func (ls *LyService) LyGoodsDetail(ctx *gin.Context, goodsIds []string, ch chan sync.Map) {
redisConn := gredis.Conn("search_r")
......@@ -75,7 +75,8 @@ func (ls *LyService) LyGoodsDetail(ctx *gin.Context, goodsIds []string, ch chan
}
//获取商品名称
if sku.GoodsName == "" {
//1688就是mro的sku spuName和GoodsName不是一个东西,不能公用
if sku.GoodsName == "" && sku.SupplierId != 1688 {
sku.GoodsName = gjson.Get(spu, "spu_name").String()
}
......@@ -205,7 +206,7 @@ func (ls *LyService) LyGoodsDetail(ctx *gin.Context, goodsIds []string, ch chan
ch <- GoodsRes
}
//获取活动
// 获取活动
func (ls *LyService) GetActivity(sku model.LySku) model.LySku {
//去判断是否有活动(促销打折活动和满赠活动)
checkData := model.ActivityCheckData{
......
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