修复Redis返回默认值的问题
This commit is contained in:
@@ -248,7 +248,7 @@ public class BangumiTools {
|
||||
*/
|
||||
public static String reportToDayBangumi() {
|
||||
String toDayTime = new SimpleDateFormat("yyyy-MM-dd").format(new Date());
|
||||
if (!RedisTools.get("reportToDayBangumi").equals(toDayTime)) {
|
||||
if (!toDayTime.equals(RedisTools.get("reportToDayBangumi"))) {
|
||||
RedisTools.set("reportToDayBangumi", toDayTime);
|
||||
StringBuilder builder = new StringBuilder();
|
||||
JSONObject toDay = getBangumi(0);
|
||||
|
||||
Reference in New Issue
Block a user