From f7b2baec57a19039ca85880bbba4e17fe27f0511 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 10 三月 2021 18:21:13 +0800 Subject: [PATCH] 删除冗余代码,初步优化首页的推荐专题,3.8.7之后在我的里面添加VIP分类 --- src/test/java/com/hxh/spring/test/PPTVTest.java | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/src/test/java/com/hxh/spring/test/PPTVTest.java b/src/test/java/com/hxh/spring/test/PPTVTest.java index d6150f7..3bdc1b5 100644 --- a/src/test/java/com/hxh/spring/test/PPTVTest.java +++ b/src/test/java/com/hxh/spring/test/PPTVTest.java @@ -142,6 +142,28 @@ } } + @Test + public void reAddVideo(){ + reAdd("姝︽灄澶栦紶"); + } + + private void reAdd(String name) { + Query query = new Query(); + query.addCriteria(Criteria.where("name").is(name)); + PPTVSeries series = pptvSeriesDao.findOne(query); + if (series != null) { + pptvService.offLineSeries(series.getInfoID()); + //娣诲姞鍒拌鎯� + try { + Thread.sleep(1000 * 3L); + } catch (InterruptedException e) { + e.printStackTrace(); + } + series = pptvService.getSeriesDetail(series.getInfoID()); + pptvService.addToVideoInfo(series); + } + } + @Test public void logs() { -- Gitblit v1.8.0