修复每日动画被固定成true的问题
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user