Commit a8b4eb66 by huangchengyi

1.0

parent 15cfd232
Showing with 8 additions and 6 deletions
......@@ -228,7 +228,6 @@ func (qs *OptimumService) GetOptimumAttrInfo(ctx *gin.Context) (results model.Ly
GoodsUrl := ""
BrandUrl := ""
Multiple := 0
referer := ctx.GetHeader("Referer")
if referer != ""{
dome := strings.Split(referer,".com")
......@@ -239,14 +238,17 @@ func (qs *OptimumService) GetOptimumAttrInfo(ctx *gin.Context) (results model.Ly
}else{
GoodsUrl = dome[0]+".com/goods_"+v.GoodsId+".html"
BrandUrl = dome[0]+".com/v3/brand/list/"+strconv.Itoa(v.BrandId)+".html"
//联营倍数
Multiple = v.Mpq
if v.Mpq > v.Moq {
Multiple = v.Moq
}
}
}
}
Multiple := 0 //联营倍数
if v.SupplierName != "猎芯自营" {
//联营倍数
Multiple = v.Mpq
if v.Mpq > v.Moq {
Multiple = v.Moq
}
}
endArr = append(endArr,model.DullGoodsData{
ApiGoods:v,
......
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