就调用企业微信的api 报超时,任何企业微信的接口都报,微信的都不报,服务器端ping 也可以ping通
OkHttpClient mOkHttpClient = new OkHttpClient();
final Request rerequest = new Request.Builder()
.url("https://qyapi.weixin.qq.com/cgi-bin/gettoken?corpid=ID&corpsecret=SECRET")
.build();
Call call = mOkHttpClient.newCall(rerequest);
Response execute = call.execute();
if (execute.isSuccessful()) {
String string = execute.body().string();
result.put("username", string);
//响应成功
}
已解决,是服务器DNS的问题