diff --git a/app/controller/api/Consumer.php b/app/controller/api/Consumer.php index dce95bf..01871d5 100644 --- a/app/controller/api/Consumer.php +++ b/app/controller/api/Consumer.php @@ -181,14 +181,12 @@ class Consumer extends Base * */ public function advertisement() { - $repo = OperationRepository::getInstance(); - $orders = ['sort'=>'asc']; $page = input("page/d",1); $size = input("size/d",1000); - $couponId = input("coupon_id/d",0); + $coupon = CouponRepository::getInstance()->findById($couponId, [], function ($q) { return $q->with([ "business" => function ($q) {