修复每日动画被固定成true的问题

This commit is contained in:
yutou
2021-01-14 17:35:55 +08:00
parent 34dc1c2210
commit 92fc97e128
3 changed files with 4 additions and 4 deletions

View File

@@ -190,8 +190,9 @@ public class BangumiTools {
* @return 番剧列表
*/
public static String reportToDayBangumi() {
if (!RedisTools.get("reportToDayBangumi").equals("true")) {
RedisTools.set("reportToDayBangumi", "true");
String toDayTime = new SimpleDateFormat("yyyy-MM-dd").format(new Date());
if (!RedisTools.get("reportToDayBangumi").equals(toDayTime)) {
RedisTools.set("reportToDayBangumi", toDayTime);
StringBuilder builder = new StringBuilder();
JSONObject toDay = getBangumi(0);
if (toDay == null) {