It is not worth the while to let our imperfections disturb us always.
犯不着总是为自己的不完美而烦恼。———— Henry David Thoreau
最近在做一个抽奖活动,大概逻辑就是每期活动每个人最多可以抽10次, 活动是在每周五进行。如果你在本期活动已经抽完了5次, 就要提示 你的抽奖次数已用完,下期抽奖将于 xxx 时间开始。所以就需要计算一下下期活动是什么时候。所以就使用了java hutool工具来完成: import cn.hutool.core.date.DateField; import cn.hutool.core.date.DateTime; import cn.hutool.core.date.Week; import cn.hutool.core.util.DateUtil; public class NextFrida...