Browse Source

处理空商品

master
weigang 5 years ago
parent
commit
75ed7c6b2e
  1. 2
      app/Service/v3/Implementations/ShopCartService.php

2
app/Service/v3/Implementations/ShopCartService.php

@ -203,7 +203,7 @@ class ShopCartService implements ShopCartServiceInterface
$totalAmount = 0;
foreach ($carts as $key => &$cart) {
if (empty($cart->store)) {
if (empty($cart->store)||empty($cart->goods)) {
continue;
}

Loading…
Cancel
Save