fix
This commit is contained in:
parent
15b278f782
commit
82e5101948
|
@ -185,8 +185,6 @@ func (l *GetCartsLogic) GetCarts(req *types.GetCartsReq, userinfo *auth.UserInfo
|
||||||
PurchaseQuantity: *cart.PurchaseQuantity,
|
PurchaseQuantity: *cart.PurchaseQuantity,
|
||||||
MinPurchaseQuantity: *sizePrice.EachBoxNum * (*sizePrice.MinBuyNum),
|
MinPurchaseQuantity: *sizePrice.EachBoxNum * (*sizePrice.MinBuyNum),
|
||||||
StepPurchaseQuantity: *sizePrice.EachBoxNum,
|
StepPurchaseQuantity: *sizePrice.EachBoxNum,
|
||||||
IsInvalid: false,
|
|
||||||
InvalidDescription: "",
|
|
||||||
IsHighlyCustomized: *cart.IsHighlyCustomized > 0,
|
IsHighlyCustomized: *cart.IsHighlyCustomized > 0,
|
||||||
IsSelected: *cart.IsSelected > 0,
|
IsSelected: *cart.IsSelected > 0,
|
||||||
}
|
}
|
||||||
|
@ -194,6 +192,8 @@ func (l *GetCartsLogic) GetCarts(req *types.GetCartsReq, userinfo *auth.UserInfo
|
||||||
if description, ok := mapCartChange[cart.Id]; ok {
|
if description, ok := mapCartChange[cart.Id]; ok {
|
||||||
item.IsInvalid = true
|
item.IsInvalid = true
|
||||||
item.InvalidDescription = description
|
item.InvalidDescription = description
|
||||||
|
//失效了返回给前端也是不选中
|
||||||
|
item.IsSelected = false
|
||||||
}
|
}
|
||||||
list = append(list, item)
|
list = append(list, item)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user