request->get(); $where = []; $where['shopId'] = $this->shopId; $status = $get['status'] ?? 0; if (!empty($status)) { $where['status'] = $status; } $ghsId = $get['ghsId'] ?? 0; if (!empty($ghsId)) { $where['ghsId'] = $ghsId; } $list = ShopCouponService::getCouponList($where); util::success($list); } }