update:rss更新日改成具体周几

del:移除my.js一处日志打印
This commit is contained in:
Yutousama 2022-07-14 13:56:04 +08:00
parent 64656c7dc6
commit 39d4edebae
4 changed files with 18 additions and 6 deletions

View File

@ -21,7 +21,7 @@ public class BangumiItem implements Serializable {
private String title; private String title;
private boolean isUpdate=false; private String updateDay ;
/** /**
* 标题过滤词 * 标题过滤词

View File

@ -86,11 +86,24 @@ public class BangumiServiceImpl implements BangumiService {
day = 7; day = 7;
} }
if(bangumi.getInteger("air_weekday")==day) { if(bangumi.getInteger("air_weekday")==day) {
item.setUpdate(true); item.setUpdateDay("今天更新");
}else{
item.setUpdateDay(""+getDay(bangumi.getInteger("air_weekday"))+"更新");
} }
} }
return items; 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 @Override
public List<BangumiItem> getAllBangumiItemList() { public List<BangumiItem> getAllBangumiItemList() {

View File

@ -183,11 +183,11 @@
{{# }}} {{# }}}
</script> </script>
<script type="text/html" id="animUpdateState"> <script type="text/html" id="animUpdateState">
{{# if(d.update==1){}} {{# if(d.updateDay=='今天更新'){}}
<div><input type="checkbox" name="update" lay-text="今天更新|不更新" lay-filter="stateCheckbox" lay-skin="switch" <div><input type="checkbox" name="update" lay-text="今天更新|不更新" lay-filter="stateCheckbox" lay-skin="switch"
value="{{d.id}}" checked disabled></div> value="{{d.id}}" checked disabled></div>
{{# } else { }} {{# } else { }}
<div><input type="checkbox" name="update" lay-text="今天更新|不更新" lay-filter="stateCheckbox" lay-skin="switch" <div><input type="checkbox" name="update" lay-text="{{d.updateDay}}|{{d.updateDay}}" lay-filter="stateCheckbox" lay-skin="switch"
value="{{d.id}}" disabled></div> value="{{d.id}}" disabled></div>
{{# }}} {{# }}}
</script> </script>

View File

@ -102,8 +102,7 @@ function Base64() {
} }
} }
function getParam(name){ function getParam(name){
console.log(window.location.href) let results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
if (results == null) { if (results == null) {
return null; return null;
} else { } else {