Merge pull request #1830 from hsycc/main

fix: 修复配置声纹识别地址为域名不带端口, 请求url错误的问题
This commit is contained in:
hrz
2025-07-14 23:16:54 +08:00
committed by GitHub
@@ -219,7 +219,11 @@ public class AgentVoicePrintServiceImpl extends ServiceImpl<AgentVoicePrintDao,
String protocol = uri.getScheme();
String host = uri.getHost();
int port = uri.getPort();
return "%s://%s:%s".formatted(protocol, host, port);
if (port == -1) {
return "%s://%s".formatted(protocol, host);
} else {
return "%s://%s:%s".formatted(protocol, host, port);
}
}
/**