From 00e0374c5262f690a88bb2ee6d1fa9213fa600e2 Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Thu, 16 Dec 2021 17:41:17 +0800 Subject: [PATCH] settter --- app/controller/manager/Coupon.php | 2 +- view/manager/coupon/index.html | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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 @@