From 71613f2db369a8cd5dfd9eed51e099955bd12cf1 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 27 三月 2021 16:53:47 +0800 Subject: [PATCH] 全网搜bug修复 --- src/main/java/com/yeshi/buwan/service/imp/juhe/YouKuServiceImpl.java | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/yeshi/buwan/service/imp/juhe/YouKuServiceImpl.java b/src/main/java/com/yeshi/buwan/service/imp/juhe/YouKuServiceImpl.java index 5154daa..7436f4a 100644 --- a/src/main/java/com/yeshi/buwan/service/imp/juhe/YouKuServiceImpl.java +++ b/src/main/java/com/yeshi/buwan/service/imp/juhe/YouKuServiceImpl.java @@ -46,8 +46,6 @@ } youKuVideoDao.save(video); } - - internetSearchVideoService.save(InternetSearchVideoFactory.create(detail)); } @Override @@ -120,8 +118,11 @@ @Override public void addToInternetSearch(YouKuShowDetail showDetail) throws Exception { + save(showDetail); InternetSearchVideo video = InternetSearchVideoFactory.create(showDetail); - internetSearchVideoService.save(video); + if (internetSearchVideoService.save(video) == null) { + return; + } YouKuSearchVideoMap map = new YouKuSearchVideoMap(); map.setShowId(showDetail.getId()); map.setVideoId(video.getId()); -- Gitblit v1.8.0