where($condition) ->update($data); return $result; } public function getUserInfo($condition) { $result = $this ->where($condition) ->find(); return $result; } }