mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-26 04:39:53 +01:00
commit
8f6e9ca54d
1 changed files with 3 additions and 3 deletions
|
|
@ -174,7 +174,7 @@ public class SysParamsController {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (StringUtils.isBlank(url) || url.equals("null")) {
|
if (StringUtils.isBlank(url) || url.equals("null")) {
|
||||||
throw new RenException(ErrorCode.OTA_URL_EMPTY);
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 检查是否包含localhost或127.0.0.1
|
// 检查是否包含localhost或127.0.0.1
|
||||||
|
|
@ -211,7 +211,7 @@ public class SysParamsController {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (StringUtils.isBlank(url) || url.equals("null")) {
|
if (StringUtils.isBlank(url) || url.equals("null")) {
|
||||||
throw new RenException(ErrorCode.MCP_URL_EMPTY);
|
return;
|
||||||
}
|
}
|
||||||
if (url.contains("localhost") || url.contains("127.0.0.1")) {
|
if (url.contains("localhost") || url.contains("127.0.0.1")) {
|
||||||
throw new RenException(ErrorCode.MCP_URL_LOCALHOST);
|
throw new RenException(ErrorCode.MCP_URL_LOCALHOST);
|
||||||
|
|
@ -242,7 +242,7 @@ public class SysParamsController {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (StringUtils.isBlank(url) || url.equals("null")) {
|
if (StringUtils.isBlank(url) || url.equals("null")) {
|
||||||
throw new RenException(ErrorCode.VOICEPRINT_URL_EMPTY);
|
return;
|
||||||
}
|
}
|
||||||
if (url.contains("localhost") || url.contains("127.0.0.1")) {
|
if (url.contains("localhost") || url.contains("127.0.0.1")) {
|
||||||
throw new RenException(ErrorCode.VOICEPRINT_URL_LOCALHOST);
|
throw new RenException(ErrorCode.VOICEPRINT_URL_LOCALHOST);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue