From 19533a17aa55fafc70d0a385928e785cb50e1ebc Mon Sep 17 00:00:00 2001 From: admin <2780501319@qq.com> Date: 星期五, 30 七月 2021 02:05:14 +0800 Subject: [PATCH] 爱奇艺视频更新 --- src/main/java/com/yeshi/buwan/service/imp/juhe/TencentVideoServiceImpl.java | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/yeshi/buwan/service/imp/juhe/TencentVideoServiceImpl.java b/src/main/java/com/yeshi/buwan/service/imp/juhe/TencentVideoServiceImpl.java index 9a34ee2..eede372 100644 --- a/src/main/java/com/yeshi/buwan/service/imp/juhe/TencentVideoServiceImpl.java +++ b/src/main/java/com/yeshi/buwan/service/imp/juhe/TencentVideoServiceImpl.java @@ -62,8 +62,6 @@ tencentCoverVideoDao.save(video); } - - internetSearchVideoService.save(InternetSearchVideoFactory.create(detail)); } @Override @@ -138,8 +136,11 @@ @Override public void addToInternetSearch(TencentCoverInfo showDetail) throws Exception { + save(showDetail); InternetSearchVideo video = InternetSearchVideoFactory.create(showDetail); - internetSearchVideoService.save(video); + if (internetSearchVideoService.save(video) == null) { + return; + } TencentSearchVideoMap map = new TencentSearchVideoMap(); map.setCoverId(showDetail.getId()); map.setVideoId(video.getId()); -- Gitblit v1.8.0