diff --git a/app/controller/manager/Coupon.php b/app/controller/manager/Coupon.php index 1a91150..6e76ed6 100644 --- a/app/controller/manager/Coupon.php +++ b/app/controller/manager/Coupon.php @@ -44,7 +44,7 @@ class Coupon extends Base $model = new CouponMain(); $repo = CouponRepository::getInstance($model); $keyword = $this->request->param('keyword/s', ''); - $on_shelf = $this->request->param('on_shelf'); + $on_shelf = $this->request->param('on_shelf',CouponMain::on_shelf_off); $start_time = $this->request->param('start_time',); $end_time = $this->request->param('end_time'); $page = $this->request->param('page/d', 1); diff --git a/view/manager/coupon/index.html b/view/manager/coupon/index.html index feca8a1..cfea550 100644 --- a/view/manager/coupon/index.html +++ b/view/manager/coupon/index.html @@ -60,9 +60,8 @@