AuthToken authToken = null;
String authURL = null;
switch (WeiboSource.valueOf(source)) {
case Tqq:
TqqAuthApi tqqOAuth = new TqqAuthApi();
authToken = tqqOAuth.requestToken();
authURL = configItemDao.getValue("qq.authorize.url") + "?oauth_token=" + authToken.getToken();
break;
case Sina:
SinaAuthApi sinaOAuth = new SinaAuthApi();
authToken = sinaOAuth.requestToken();