diff --git a/src/main/java/com/yutou/tools/mybatis/model/BangumiItem.java b/src/main/java/com/yutou/tools/mybatis/model/BangumiItem.java index 0675e68..28092a7 100644 --- a/src/main/java/com/yutou/tools/mybatis/model/BangumiItem.java +++ b/src/main/java/com/yutou/tools/mybatis/model/BangumiItem.java @@ -21,7 +21,7 @@ public class BangumiItem implements Serializable { private String title; - private boolean isUpdate=false; + private String updateDay ; /** * 标题过滤词 diff --git a/src/main/java/com/yutou/tools/services/BangumiServiceImpl.java b/src/main/java/com/yutou/tools/services/BangumiServiceImpl.java index 7e44529..a31525e 100644 --- a/src/main/java/com/yutou/tools/services/BangumiServiceImpl.java +++ b/src/main/java/com/yutou/tools/services/BangumiServiceImpl.java @@ -86,11 +86,24 @@ public class BangumiServiceImpl implements BangumiService { day = 7; } if(bangumi.getInteger("air_weekday")==day) { - item.setUpdate(true); + item.setUpdateDay("今天更新"); + }else{ + item.setUpdateDay("周"+getDay(bangumi.getInteger("air_weekday"))+"更新"); } } return items; } + private String getDay(int day){ + switch (day){ + case 1:return "一"; + case 2:return "二"; + case 3:return "三"; + case 4:return "四"; + case 5:return "五"; + case 6:return "六"; + default:return "日"; + } + } @Override public List getAllBangumiItemList() { diff --git a/web/html/body/nas/animrss.html b/web/html/body/nas/animrss.html index d283819..8f0b30d 100644 --- a/web/html/body/nas/animrss.html +++ b/web/html/body/nas/animrss.html @@ -183,11 +183,11 @@ {{# }}} diff --git a/web/js/myjs.js b/web/js/myjs.js index d8f8ad3..52a9357 100644 --- a/web/js/myjs.js +++ b/web/js/myjs.js @@ -102,8 +102,7 @@ function Base64() { } } function getParam(name){ - console.log(window.location.href) - var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href); + let results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href); if (results == null) { return null; } else {