/**
* 获取缓存的对象
*
* @param account
* @return
*/
public static String getCache(String account) {
account = getCacheKey(account);
// 如果缓存中有该账号,则返回value
if (cacheMap.containsKey(account)) {
return cacheMap.get(account);
}
// 如果缓存中没有该账号,把该帐号对象缓存到concurrentHashMap中
initCache(account);
return cacheMap.get(account);
}
/**
* 初始化缓存
*
* @param account
*/
private static void initCache(String account) {
// 将Authorization进行缓存
String authorization = "";
String appid = PropertyUtil.getProperty(APP_KEY);
String appsecret = PropertyUtil.getProperty(APP_SECRET);
String url = PropertyUtil.getProperty(U