diff --git a/app/Service/ShopCarService.php b/app/Service/ShopCarService.php index dab1ef9..b017955 100644 --- a/app/Service/ShopCarService.php +++ b/app/Service/ShopCarService.php @@ -32,6 +32,7 @@ class ShopCarService implements ShopCarServiceInterface $goods_exists = ShopCar::where([ ['money','=',0.01], ['user_id','=',$params['user_id']] + ['good_id','=',$params['good_id']] ]) ->exists(); if($goods_exists){