企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
### IP信息查询 *** ~~~ // 新建一个 T1CloudFeatures() T1CloudFeatures t1CloudFeatures = new T1CloudFeatures(); // 必填项 t1CloudFeatures.put("ip", "220.181.38.148"); // ip 地址 // 调用 ipQuery() 方法 t1CloudFeatures.ipQuery(new T1CloudListener() { @Override public void onDone(String json) { // IP 信息查询成功 toast(json); } @Override public void onError(String error) { // IP 信息查询失败 toast(error); } }); ~~~ ### 响应示例: ~~~ { "code": "1", // 0 为失败,1 为成功 "message": "获取成功!", // 备注 "ip": "121.206.193.74", // IP "country": "中国", // 国家地区 "region": "福建", // 省 "city": "福州", // 地区 "county": "未知", // 县市 "isp": "电信" // 运营商 } ~~~