fix
This commit is contained in:
parent
81a64b2129
commit
9f865eb1c5
|
@ -136,11 +136,10 @@ func (l *GetSizeByProductLogic) GetSecondChildrenList(product gmodel.FsProduct,
|
||||||
price, ok := mapProductPrice[productSize.Id]
|
price, ok := mapProductPrice[productSize.Id]
|
||||||
//无对应尺寸价格
|
//无对应尺寸价格
|
||||||
if !ok {
|
if !ok {
|
||||||
for i := 0; i < 3; i++ {
|
priceList = []types.PriceObj{
|
||||||
priceList = append(priceList, types.PriceObj{
|
{Num: 1, Price: 0},
|
||||||
Num: 1,
|
{Num: 1, Price: 0},
|
||||||
Price: 0,
|
{Num: 1, Price: 0},
|
||||||
})
|
|
||||||
}
|
}
|
||||||
childrenObjList = append(childrenObjList, types.ChildrenObj{
|
childrenObjList = append(childrenObjList, types.ChildrenObj{
|
||||||
Id: productSize.Id,
|
Id: productSize.Id,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user