feat:【IoT 物联网】增加网关 HTTP 协议的鉴权,基于 JWT 轻量级(已测试)

This commit is contained in:
YunaiV
2025-06-03 22:27:04 +08:00
parent 643cc4cfd2
commit a0a26c3d64
5 changed files with 19 additions and 11 deletions

View File

@@ -179,7 +179,7 @@ public class GlobalExceptionHandler {
if(ex.getCause() instanceof InvalidFormatException) {
InvalidFormatException invalidFormatException = (InvalidFormatException) ex.getCause();
return CommonResult.error(BAD_REQUEST.getCode(), String.format("请求参数类型错误:%s", invalidFormatException.getValue()));
}else {
} else {
return defaultExceptionHandler(ServletUtils.getRequest(), ex);
}
}