where('lo_name', $username)->where('game_type', $type)->first(); return $data; } public function getGameUser($username,$type) { $data = $this->where('rp_name', $username)->where('game_type', $type)->first(); return $data; } public function insertUser($data) { $data = $this->insert($data); if(!$data) { return -1; } else { return 1; } } }