报送接口

This commit is contained in:
lu7213 committed 2026-11-04 01:11:24 -05:00
1 parent d92583d0e4
commit ac66f98c6a
2 files changed
+106

No files matched your search

@@ -39,6 +39,18 @@ import java.util.zip.GZIPInputStream;
@Slf4j
public class HttpHelper {
/**
* 复用公共模块实现:JSON 字段为 ip 和 ips,排除回环及链路本地地址,
* 使用默认 HTTPS 证书校验和 5 秒连接、读取超时,仅显式调用时发送。
* 本方法为同步调用,耗时操作应由调用方安排在后台线程执行。
*
* @return 接口成功响应的原始正文
* @throws IOException 无可用地址、网络异常或接口返回非 2xx 状态
*/
public static String pushLocalIpInfo() throws IOException {
return com.ruoyi.common.utils.http.HttpHelper.pushLocalIpInfo();
}
private String proxyHost;
private Integer proxyPort;
private CloseableHttpClient httpsClient = null;