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

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

sweet

parent 447dcfc8
...@@ -216,13 +216,14 @@ public class RedisDataUtils { ...@@ -216,13 +216,14 @@ 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);
} } else {
if (vo.getWatchList().contains(artistsId)) { if (vo.getWatchList().contains(artistsId)) {
vo.getWatchList().remove(artistsId); vo.getWatchList().remove(artistsId);
} else { } else {
vo.getWatchList().add(artistsId); 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