mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-31 03:43:57 +08:00
fix: 修复配置声纹识别地址为域名不带端口, 请求url错误的问题
This commit is contained in:
+4
@@ -219,8 +219,12 @@ public class AgentVoicePrintServiceImpl extends ServiceImpl<AgentVoicePrintDao,
|
||||
String protocol = uri.getScheme();
|
||||
String host = uri.getHost();
|
||||
int port = uri.getPort();
|
||||
if (port == -1) {
|
||||
return "%s://%s".formatted(protocol, host);
|
||||
} else {
|
||||
return "%s://%s:%s".formatted(protocol, host, port);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取验证Authorization
|
||||
|
||||
Reference in New Issue
Block a user