diff --git a/app/Controller/CouponController.php b/app/Controller/CouponController.php index af85368..e7fd6c4 100644 --- a/app/Controller/CouponController.php +++ b/app/Controller/CouponController.php @@ -200,7 +200,7 @@ class CouponController extends BaseController # 店铺类型id $storetypeId = $this->request->input('storetype_id', 0); - $res = $this->couponService->getUserAvailableCoupons($orderAmount,$userId,$marketId,$storetypeId); + $res = $this->couponService->getUserAvailableCoupons($orderAmount,$userId,$marketId,$type,$storetypeId); return $this->success($res); } diff --git a/app/Service/CouponService.php b/app/Service/CouponService.php index 57acfa4..313f18d 100644 --- a/app/Service/CouponService.php +++ b/app/Service/CouponService.php @@ -154,7 +154,7 @@ class CouponService implements CouponServiceInterface * 获取用户当前订单可用的优惠券列表 * 按分类(1订单 等优惠)分组返回 */ - public function getUserAvailableCoupons($orderAmount,$userId,$marketId,$storetypeId) + public function getUserAvailableCoupons($orderAmount,$userId,$marketId,$type,$storetypeId) { $storetypeIds = explode(',', str_replace(',', ',', $storetypeId)); diff --git a/app/Service/CouponServiceInterface.php b/app/Service/CouponServiceInterface.php index bf82ab4..f272c42 100644 --- a/app/Service/CouponServiceInterface.php +++ b/app/Service/CouponServiceInterface.php @@ -13,7 +13,7 @@ interface CouponServiceInterface public function getUserReceiveCouponList(); - public function getUserAvailableCoupons($orderAmount,$userId,$marketId,$storetypeId); + public function getUserAvailableCoupons($orderAmount,$userId,$marketId,$type,$storetypeId); /** * 当前订单可用优惠券列表