request->get(); $where = []; $where['shopId'] = $this->shopId; $status = $get['status'] ?? 0; if (!empty($status)) { $where['status'] = $status; } $list = ShopCouponService::getCouponList($where); util::success($list); } //有可用红包 shish 2021.5.15 public function actionHas() { $has = ShopCouponClass::hasUnUseCoupon($this->shopId); $data = [ 'has' => $has ]; util::success($data); } }