记得上下班打卡 | git大法好,push需谨慎

Commit f10e0f7e authored by 胡佳晨's avatar 胡佳晨

sweet

parent 447dcfc8
...@@ -216,14 +216,15 @@ public class RedisDataUtils { ...@@ -216,14 +216,15 @@ public class RedisDataUtils {
ArrayList<String> watchList = new ArrayList<>(); ArrayList<String> watchList = new ArrayList<>();
watchList.add(artistsId); watchList.add(artistsId);
vo.setWatchList(watchList); vo.setWatchList(watchList);
}
if (vo.getWatchList().contains(artistsId)) {
vo.getWatchList().remove(artistsId);
} else { } else {
vo.getWatchList().add(artistsId); if (vo.getWatchList().contains(artistsId)) {
vo.getWatchList().remove(artistsId);
} else {
vo.getWatchList().add(artistsId);
}
} }
} }
redisUtil.set(redisKey, vo); redisUtil.set(redisKey, vo);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment