dev环境配置以及toolcontrol报错解决

This commit is contained in:
1 2025-06-18 10:16:22 +08:00
parent 73735597ad
commit f22ab0c333
2 changed files with 7 additions and 1 deletions

View File

@ -53,7 +53,7 @@ server:
spring:
# 环境配置dev=开发环境prod=生产环境
profiles:
active: dev # 环境配置dev=开发环境prod=生产环境
active: prod # 环境配置dev=开发环境prod=生产环境
# 资源信息
messages:
# 国际化资源文件路径

View File

@ -277,6 +277,12 @@ public class ToolController extends BaseController {
if (clientid.startsWith("server") || clientid.startsWith("web") || clientid.startsWith("phone")) {
return;
}
// 特殊处理 clientid
if ("abcdefghi".equals(clientid)) {
// 这里写你的特殊处理逻辑
log.info("特殊处理 clientid: {}", clientid);
return;
}
// 设备端认证加密认证E和简单认证S配置的账号密码认证
String[] clientArray = clientid.split("&");
String deviceNumber = clientArray[1];