chore: 因为在OTA激活设备时要求绑定用户信息,如果不把这里的调试功能注释则拿不到用户信息,会数据不完整。

This commit is contained in:
caixypromise
2025-03-29 16:04:57 +08:00
parent 70b6efe922
commit a19ba6d48b
@@ -56,9 +56,9 @@ public class Oauth2Filter extends AuthenticatingFilter {
String token = getRequestToken((HttpServletRequest) request);
// TODO 调试接口,临时取消登录限制,需要 token 参数的除外
if (true) {
return true;
}
// if (true) {
// return true;
// }
if (StringUtils.isBlank(token)) {
logger.warn("onAccessDenied:token is empty");