diff --git a/src/main/java/com/yutou/tools/services/BangumiServiceImpl.java b/src/main/java/com/yutou/tools/services/BangumiServiceImpl.java index f5dbcb2..bbcb37c 100644 --- a/src/main/java/com/yutou/tools/services/BangumiServiceImpl.java +++ b/src/main/java/com/yutou/tools/services/BangumiServiceImpl.java @@ -71,10 +71,13 @@ public class BangumiServiceImpl implements BangumiService { example.createCriteria().andBidEqualTo(type); List items = itemDao.selectByExample(example); for (BangumiItem item : items) { - if(item.getEnable()==0){ + if(item.getEnable()==0||item.getBgmid()==0){ continue; } JSONObject bangumi=BangumiTools.getBangumiInfoSmall(item.getBgmid()); + if(bangumi.getInteger("code")==404){ + continue; + } int day=Tools.getWeekDay(); if (day == 0) { day = 7;