From f13ed98e1de0ec7b85ed179212cc095f63480eed Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期四, 25 三月 2021 18:18:20 +0800 Subject: [PATCH] 全网搜优酷兼容 --- src/test/java/com/hxh/spring/test/Iqiyi2.java | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/test/java/com/hxh/spring/test/Iqiyi2.java b/src/test/java/com/hxh/spring/test/Iqiyi2.java index 78fb885..c29beee 100644 --- a/src/test/java/com/hxh/spring/test/Iqiyi2.java +++ b/src/test/java/com/hxh/spring/test/Iqiyi2.java @@ -37,9 +37,9 @@ import java.util.Scanner; // -@RunWith(SpringJUnit4ClassRunner.class) //浣跨敤junit4杩涜娴嬭瘯 -@ContextConfiguration(locations = {"classpath:spring.xml"}) -@WebAppConfiguration +//@RunWith(SpringJUnit4ClassRunner.class) //浣跨敤junit4杩涜娴嬭瘯 +//@ContextConfiguration(locations = {"classpath:spring.xml"}) +//@WebAppConfiguration public class Iqiyi2 { private final static Logger errorLogger = LoggerFactory.getLogger("errorLogger"); @@ -273,7 +273,7 @@ @Test public void addResources() { try { - VideoInfo videoInfo = videoInfoService.getVideoInfo(8174476+""); + VideoInfo videoInfo = videoInfoService.getVideoInfo(8174476 + ""); if (videoInfo != null) { if ("1".equalsIgnoreCase(videoInfo.getShow())) { List<VideoResource> resourceList = new ArrayList<>(); @@ -291,4 +291,11 @@ } + @Test + public void getDetail() { + IqiYiNewAPI.getAlbumOrVideoDetail(524533200L); + + } + + } -- Gitblit v1.8.0