doc = ConnectionManager.getInstance().getDocument(url);
} catch (Exception e) {
logger.error("connect fail..", e);
return null;
}
String resultStr = doc.text();
Map<String,Object> infoMap = new HashMap<String, Object>();
JSONObject object = JSONObject.fromObject("{\""+resultStr.substring(resultStr.indexOf("totalItem")));
infoMap.put("totalItem", object.get("totalItem"));
infoMap.put("lotteryType", object.get("lotteryType"));
infoMap.put("totalPage", object.get("totalPage"));