mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-24 04:19:48 +01:00
Merge pull request #1830 from hsycc/main
fix: 修复配置声纹识别地址为域名不带端口, 请求url错误的问题
This commit is contained in:
commit
2e719e2ccc
1 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue