2024年4月15日发(作者:)
JsonNode json = (response);
if (("openid") != null) {
WeixinOpenUser user = new WeixinOpenUser();
nUserId(("openid").asText());
te(("subscribe").asText());
if ("1".equals(te())) {
rName(("nickname").asText());
(("sex").asText());
y(("city").asText());
guage(("language").asText());
}
return user;
}
} catch (Exception e) {
("get user info exception", e);
}
return null;
}
/**
* @desc 发起HTTP GET请求返回数据
* @param url
* @return
* @throws IOException
* @throws ClientProtocolException
*/
private String executeHttpGet(String url) throws IOException, ClientProtocolException {
ResponseHandler> responseHandler = new BasicResponseHandler();
String response = (String) e(new HttpGet(url), responseHandler);
("return response=====start======");
(response);
("return response=====end======");
return response;
}
}
发布者:admin,转转请注明出处:http://www.yc00.com/news/1713118765a2186652.html
评论列表(0条)