update:rss更新日改成具体周几
del:移除my.js一处日志打印
This commit is contained in:
parent
64656c7dc6
commit
39d4edebae
@ -21,7 +21,7 @@ public class BangumiItem implements Serializable {
|
||||
|
||||
private String title;
|
||||
|
||||
private boolean isUpdate=false;
|
||||
private String updateDay ;
|
||||
|
||||
/**
|
||||
* 标题过滤词
|
||||
|
@ -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<BangumiItem> getAllBangumiItemList() {
|
||||
|
@ -183,11 +183,11 @@
|
||||
{{# }}}
|
||||
</script>
|
||||
<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"
|
||||
value="{{d.id}}" checked disabled></div>
|
||||
{{# } 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>
|
||||
{{# }}}
|
||||
</script>
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user