fix
This commit is contained in:
parent
e87dd4f800
commit
15b278f782
|
@ -134,11 +134,11 @@ func (l *CalculateCartPriceLogic) CalculateCartPrice(req *types.CalculateCartPri
|
|||
})
|
||||
updData := &gmodel.FsShoppingCart{
|
||||
PurchaseQuantity: &reqPurchaseQuantity,
|
||||
IsSelected: &isSelected,
|
||||
}
|
||||
//如果是选中则累加总价
|
||||
if isSelected == 1 {
|
||||
subTotalPrice += totalPrice
|
||||
updData.IsSelected = &isSelected
|
||||
}
|
||||
//更新购物车购买数量
|
||||
if err = shoppingCartModel.Update(l.ctx, cart.Id, userinfo.UserId, updData); err != nil {
|
||||
|
|
Loading…
Reference in New Issue
Block a user