合并测试环境最新后端代码

This commit is contained in:
2026-07-25 22:20:38 +08:00
20 changed files with 683 additions and 28 deletions

View File

@@ -150,4 +150,15 @@ public class SiteSecurityUtils
throw new ServiceException("获取用户ID异常", HttpStatus.UNAUTHORIZED);
}
}
/**
* 是否为管理员
*
* @param userId 用户ID
* @return 结果
*/
public static boolean isAdmin(Long userId)
{
return userId != null && 1L == userId;
}
}