request->get(); $status = isset($get['status']) ? $get['status'] : -1; $where = []; $where['sjId'] = $this->sjId; if ($status != -1) { $where['status'] = $status; } $data = CouponService::getCouponList($where); $asset = CouponAssetService::getAsset($this->sjId); if (empty($asset)) { util::fail('找不到优惠券初始数据'); } $data['asset'] = $asset; util::success($data); } }