repository = $repository; $this->merId = $this->request->merId(); } /** * 线下充值列表 * @return mixed * @author php迷途小书童 * @created 2021/2/3 13:38 */ public function lst() { [$page, $limit] = $this->getPage(); $where = $this->request->params(['keyword', 'date',"status"]); return app('json')->success($this->repository->getMerchantListAdmin($this->merId, $where, $page, $limit)); } /** * 线下充值详情 * @return mixed * @author php迷途小书童 * @created 2021/2/3 13:37 */ public function detail($id){ $detail = $this->repository->getOne($id); if (!$detail) return app('json')->fail('数据不存在'); return app("json")->success("获取成功", $detail); } }