From 39d4edebae5ac2513002da77bcf70c5eec11fd57 Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Thu, 14 Jul 2022 13:56:04 +0800 Subject: [PATCH] =?UTF-8?q?update:rss=E6=9B=B4=E6=96=B0=E6=97=A5=E6=94=B9?= =?UTF-8?q?=E6=88=90=E5=85=B7=E4=BD=93=E5=91=A8=E5=87=A0=20del:=E7=A7=BB?= =?UTF-8?q?=E9=99=A4my.js=E4=B8=80=E5=A4=84=E6=97=A5=E5=BF=97=E6=89=93?= =?UTF-8?q?=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yutou/tools/mybatis/model/BangumiItem.java | 2 +- .../yutou/tools/services/BangumiServiceImpl.java | 15 ++++++++++++++- web/html/body/nas/animrss.html | 4 ++-- web/js/myjs.js | 3 +-- 4 files changed, 18 insertions(+), 6 deletions(-) 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 {