From e9f4cfb6d1f915f8b6c2e3bac1daa7e8e361865e Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Wed, 6 Apr 2022 11:51:25 +0800 Subject: [PATCH] setter --- app/controller/api/Consumer.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) {