diff --git a/app/Service/v3/Implementations/ShopCartUpdateService.php b/app/Service/v3/Implementations/ShopCartUpdateService.php index 1ec6eb7..0c05168 100644 --- a/app/Service/v3/Implementations/ShopCartUpdateService.php +++ b/app/Service/v3/Implementations/ShopCartUpdateService.php @@ -33,13 +33,13 @@ class ShopCartUpdateService implements ShopCartUpdateServiceInterface if($activityType == GoodsConstants::IS_ACTIVITY){ $builder = GoodsActivity::query(); $goodsType = GoodsActivity::class; - $goodsModel = $builder->find($goodsId); - $goodsCheck = $this->goodsActivityService->check($goodsModel,$num,$userId); + $goods = $builder->find($goodsId); + $goodsCheck = $this->goodsActivityService->check($goods,$num,$userId); }else{ $builder = Goods::query(); $goodsType = Goods::class; - $goodsModel = $builder->find($goodsId); - $goodsCheck = $this->goodsService->check($goodsModel,$num); + $goods = $builder->find($goodsId); + $goodsCheck = $this->goodsService->check($goods,$num); } if(empty($goods)){ throw new ErrorCodeException(ErrorCode::GOODS_NOT_EXISTS); diff --git a/config/autoload/dependencies.php b/config/autoload/dependencies.php index 0ef5778..d225a6c 100644 --- a/config/autoload/dependencies.php +++ b/config/autoload/dependencies.php @@ -61,7 +61,6 @@ return [ \App\Service\v3\Interfaces\TabsServiceInterface::class => \App\Service\v3\Implementations\TabsService::class, \App\Service\v3\Interfaces\LocationServiceInterface::class => \App\Service\v3\Implementations\LocationService::class, \App\Service\v3\Interfaces\GoodsActivityServiceInterface::class => \App\Service\v3\Implementations\GoodsActivityService::class, - \App\Service\v3\Interfaces\DeliveryMoneyServiceInterface::class => \App\Service\v3\Implementations\DeliveryMoneyService::class, \App\Service\v3\Interfaces\RevenueListServiceInterface::class => \App\Service\v3\Implementations\RevenueListService::class, \App\Service\v3\Interfaces\CouponRecServiceInterface::class => \App\Service\v3\Implementations\CouponRecService::class, \App\Service\v3\Interfaces\PaymentServiceInterface::class => \App\Service\v3\Implementations\PaymentService::class,