logic = new SdkLoginLogLogic(); $this->validate = new SdkLoginLogValidate; parent::__construct(); } /** * 数据列表 * @param Request $request * @return Response */ public function index(Request $request): Response { $where = $request->more([ ['user_name', ''], ['game_id', ''], ['media_id', ''], ['agent_id', ''], ['site_id', ''], ['auth_id', ''], ['login_time', ''], ['reg_time', ''], ]); $query = $this->logic->search($where); $data = $this->logic->getList($query); $data['data'] = $this->logic->trandformListColumn($data['data'], ['game', 'ip', 'agent']); return $this->success($data); } }