hot game 更新7天所有人v0
This commit is contained in:
parent
10bfff3031
commit
530229a5fb
@ -143,6 +143,12 @@ public class HotGameServiceImpl implements HotGameService {
|
||||
}
|
||||
|
||||
public Integer getVipLevel(Long userId) {
|
||||
LocalDateTime now = LocalDateTime.now();
|
||||
LocalDateTime endTime = LocalDateTime.parse("2026-02-23 00:00:00", DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
|
||||
if (now.isBefore(endTime)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
try {
|
||||
String cacheKey = VIP_LEVEL_CACHE_KEY + userId;
|
||||
Object cachedLevel = redisService.redisTemplate().opsForValue().get(cacheKey);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user