From 25730638a3661da717a9bbcab57cd3a4b648cf5d Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Sun, 10 Jul 2022 17:10:28 +0800 Subject: [PATCH] =?UTF-8?q?update:=E4=BF=AE=E5=A4=8DbgmId=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E6=97=B6=E7=9A=84=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yutou/tools/services/BangumiServiceImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;