This commit is contained in:
laodaming 2023-09-21 16:10:49 +08:00
parent 15b278f782
commit 82e5101948

View File

@ -185,8 +185,6 @@ func (l *GetCartsLogic) GetCarts(req *types.GetCartsReq, userinfo *auth.UserInfo
PurchaseQuantity: *cart.PurchaseQuantity,
MinPurchaseQuantity: *sizePrice.EachBoxNum * (*sizePrice.MinBuyNum),
StepPurchaseQuantity: *sizePrice.EachBoxNum,
IsInvalid: false,
InvalidDescription: "",
IsHighlyCustomized: *cart.IsHighlyCustomized > 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 {
item.IsInvalid = true
item.InvalidDescription = description
//失效了返回给前端也是不选中
item.IsSelected = false
}
list = append(list, item)
}