repository = $repository; $this->areaCode = $this->request->param('areaCode', ''); $this->streetCode = $this->request->param('streetCode', ''); if ($this->areaCode == '' && $this->streetCode == '') { throw new ValidateException('请选择地区'); } } public function withdrawList(UserExtractRepository $repository) { [$page,$limit] = $this->getPage(); $where = $this->request->params(['status','keyword','date','extract_type']); return app('json')->success($repository->getList($where,$page,$limit)); } public function billList(UserBillRepository $repository) { [$page, $limit] = $this->getPage(); $where = $this->request->params(['keyword', 'date', 'type']); return app('json')->success($repository->getList($where, $page, $limit)); } }