/** 回复 */ @Override public int forwardWeibo(WeiboForwardSend weiboForwardSend) { String accountId = weiboForwardSend.getUserAccountId(); OAuthV2 oAuth = queryAccountToken(accountId); int ret = 0; TAPI tAPI = new TAPI(oAuth.getOauthVersion()); // 根据oAuth配置对应的连接管理器 try { String response = tAPI.reAdd( new AddParameter(oAuth, weiboForwardSend.getContent(), weiboForwardSend.getWeibId())); boolean isRplyOk = JSONObject.fromObject(response).getString("msg").equals("ok"); if (isRplyOk) { ret = 1; } } catch (Exception e) { e.printStackTrace(); } return ret; }