// /**
// * 調用第三方接口查詢指定帳號的信息
// * @param uid 帳號
// * @return 用戶信息
// */
// @Override
// public UserInfo matchUserInfo(String uid) {
// // // 記錄日誌
// // FileOperateLogReq fileOperateLog = LogParamUtil.getLogParam();
// // // 設置日記錄菜單
// // fileOperateLog.setLeveOneMenu("系統管理");
// // fileOperateLog.setLeveTwoMenu("帳號管理");
// // fileOperateLog.setOperateType("查詢");
// // logDao.noteFileOperate(fileOperateLog);
// // 建立Httpclient對象
// CloseableHttpClient httpClient = HttpClients.createDefault();
// CloseableHttpResponse response = null;
// String url = "https://login-beta.huawei.com/sso/rest/user";
// String resultString = "";
// UserInfo userInfo = new UserInfo();
// try {
// // 建立uri
// URIBuilder builder = new URIBuilder(url + "/" + uid);
// URI uri = builder.build();
// // 建立Http Get請求
// HttpGet httpGet = new HttpGet(uri);
// // 執行http請求
// response = httpClient.execute(httpGet);
// if (response.getEntity() == null) {
// return userInfo;
// }
// resultString = EntityUtils.toString(response.getEntity(), "utf-8");
// userInfo = JSON.parseObject(resultString, UserInfo.class);
// } catch (URISyntaxException e) {
// if (DEBUG_LOGGER.isInfoEnabled()) {
// DEBUG_LOGGER.info("exception infomation:", e.getMessage());
// }
// } catch (ClientProtocolException e) {
// if (DEBUG_LOGGER.isInfoEnabled()) {
// DEBUG_LOGGER.info("exception infomation:", e.getMessage());
// }
// } catch (IOException e) {
// if (DEBUG_LOGGER.isInfoEnabled()) {
// DEBUG_LOGGER.info("exception infomation:", e.getMessage());
// }
// } catch (JSONException e) {
// if (DEBUG_LOGGER.isInfoEnabled()) {
// DEBUG_LOGGER.info("exception infomation:", e.getMessage());
// }
// } finally {
// try {
// if (response != null) {
// response.close();
// }
// } catch (IOException e) {
// if (DEBUG_LOGGER.isInfoEnabled()) {
// DEBUG_LOGGER.info("exception infomation:", e.getMessage());
// }
// }
// }
// return userInfo;
// }ide