this is 3.24 update
This commit is contained in:
parent
f6e62355c7
commit
8aa02ca97d
|
@ -27,6 +27,7 @@ public class FestivalServiceImpl implements FestivalService {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public String getUrlByFestivalName(String festivalName) {
|
public String getUrlByFestivalName(String festivalName) {
|
||||||
|
if (festivalName.equals("无")) return "无";
|
||||||
// 获取 Redis 中所有的节日数据
|
// 获取 Redis 中所有的节日数据
|
||||||
List<Festival> festivalList = redisTemplate.opsForList().range(FESTIVAL_KEY, 0, -1);
|
List<Festival> festivalList = redisTemplate.opsForList().range(FESTIVAL_KEY, 0, -1);
|
||||||
if (festivalList == null || festivalList.isEmpty()) {
|
if (festivalList == null || festivalList.isEmpty()) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user