fix
This commit is contained in:
@@ -441,9 +441,9 @@ func (l *GetTagProductListLogic) getTagProducts(req getTagProductsReq) (productL
|
||||
if !ok || !tmpOk {
|
||||
continue
|
||||
}
|
||||
sizeNum := int64(0)
|
||||
if mapSizeNum, ok := req.MapProductSizeCount[productInfo.Id]; ok {
|
||||
sizeNum = mapSizeNum
|
||||
sizeCount := int64(0)
|
||||
if mapSizeCount, ok := req.MapProductSizeCount[productInfo.Id]; ok {
|
||||
sizeCount = mapSizeCount
|
||||
}
|
||||
//有无可选配件
|
||||
haveOptionalFitting := false
|
||||
@@ -458,7 +458,7 @@ func (l *GetTagProductListLogic) getTagProducts(req getTagProductsReq) (productL
|
||||
Id: productInfo.Id,
|
||||
Sn: *productInfo.Sn,
|
||||
Title: *productInfo.Title,
|
||||
SizeNum: uint32(sizeNum),
|
||||
SizeCount: uint32(sizeCount),
|
||||
CoverDefault: []types.CoverDefaultItem{},
|
||||
MinPrice: minPrice,
|
||||
HaveOptionalFitting: haveOptionalFitting,
|
||||
|
||||
Reference in New Issue
Block a user